Apache Airflow (or simply Airflow) is a platform to programmatically author, schedule, and monitor workflows.
When workflows are defined as code, they become more maintainable, versionable, testable, and collaborative.
Use Airflow to author workflows as directed acyclic graphs (DAGs) of tasks. The Airflow scheduler executes your tasks on an array of workers while following the specified dependencies. Rich command line utilities make performing complex surgeries on DAGs a snap. The rich user interface makes it easy to visualize pipelines running in production, monitor progress, and troubleshoot issues when needed.
Table of contents
- Requirements
- Getting started
- Installing from PyPI
- Beyond the Horizon
- Principles
- User Interface
- Using hooks and Operators from "master" in Airflow 1.10
- Contributing
- Who uses Apache Airflow?
- Who Maintains Apache Airflow?
- Can I use the Apache Airflow logo in my presentation?
- Links
Apache Airflow is tested with:
- Python versions: 3.6, 3.7
- Postgres DB: 9.6, 10
- MySQL DB: 5.7
- Sqlite - latest stable (it is used mainly for development purpose)
- Python versions: 2.7, 3.5, 3.6, 3.7
- Postgres DB: 9.6, 10
- MySQL DB: 5.6, 5.7
- Sqlite - latest stable (it is used mainly for development purpose)
- Stable version requires at least Python 3.5.3 when using Python 3
- Both versions are currently incompatible with Python 3.8 due to a known compatibility issue with a dependent library
Please visit the Airflow Platform documentation (latest stable release) for help with installing Airflow, getting a quick start, or a more complete tutorial.
Documentation of GitHub master (latest development branch): ReadTheDocs Documentation
For further information, please visit the Airflow Wiki.
Official container (Docker) images for Apache Airflow are described in IMAGES.rst.
Airflow is published as apache-airflow
package in PyPI. Installing it however might be sometimes tricky
because Airflow is a bit of both a library and application. Libraries usually keep their dependencies open and
applications usually pin them, but we should do neither and both at the same time. We decided to keep
our dependencies as open as possible (in setup.py
) so users can install different versions of libraries
if needed. This means that from time to time plain pip install apache-airflow
will not work or will
produce unusable Airflow installation.
In order to have repeatable installation, however, starting from Airflow 1.10.10 we also keep a set of
"known-to-be-working" requirement files in the requirements
folder. Those "known-to-be-working"
requirements are per major/minor python version (3.6/3.7). You can use them as constraint files
when installing Airflow from PyPI. Note that you have to specify correct Airflow version and python versions
in the URL.
- Installing just airflow:
pip install apache-airflow==1.10.10 \
--constraint https://raw.githubusercontent.com/apache/airflow/1.10.10/requirements/requirements-python3.7.txt
- Installing with extras (for example postgres,gcp)
pip install apache-airflow[postgres,gcp]==1.10.10 \
--constraint https://raw.githubusercontent.com/apache/airflow/1.10.10/requirements/requirements-python3.7.txt
Airflow is not a data streaming solution. Tasks do not move data from one to the other (though tasks can exchange metadata!). Airflow is not in the Spark Streaming or Storm space, it is more comparable to Oozie or Azkaban.
Workflows are expected to be mostly static or slowly changing. You can think of the structure of the tasks in your workflow as slightly more dynamic than a database structure would be. Airflow workflows are expected to look similar from a run to the next, this allows for clarity around unit of work and continuity.
- Dynamic: Airflow pipelines are configuration as code (Python), allowing for dynamic pipeline generation. This allows for writing code that instantiates pipelines dynamically.
- Extensible: Easily define your own operators, executors and extend the library so that it fits the level of abstraction that suits your environment.
- Elegant: Airflow pipelines are lean and explicit. Parameterizing your scripts is built into the core of Airflow using the powerful Jinja templating engine.
- Scalable: Airflow has a modular architecture and uses a message queue to orchestrate an arbitrary number of workers.
-
DAGs: Overview of all DAGs in your environment.
-
Tree View: Tree representation of a DAG that spans across time.
-
Graph View: Visualization of a DAG's dependencies and their current status for a specific run.
-
Task Duration: Total time spent on different tasks over time.
-
Gantt View: Duration and overlap of a DAG.
-
Code View: Quick way to view source code of a DAG.
Currently, stable versions of Apache Airflow are released in 1.10.* series. We are working on the future, major version of Airflow from the 2.0.* series. It is going to be released in 2020. However, the exact time of release depends on many factors and is yet unknown. We have already a lot of changes in the hooks/operators/sensors for many external systems and they are not used because they are part of the master/2.0 release.
In the Airflow 2.0 - following AIP-21 "change in import paths" all the non-core operators/hooks/sensors of Apache Airflow have been moved to the "airflow.providers" package. This opened a possibility to use the operators from Airflow 2.0 in Airflow 1.10 - with the constraint that those packages can only be used in python3.6+ environment.
Therefore we decided to prepare and release backport packages that can be installed for older Airflow versions. Those backport packages are released more frequently. Users do not have to upgrade their Airflow version to use those packages. There are a number of changes between Airflow 2.0 and 1.10.* - documented in UPDATING.md. With backported providers package users can migrate their DAGs to the new providers package incrementally and once they convert to the new operators/sensors/hooks they can seamlessly migrate their environments to Airflow 2.0.
More information about the status and releases of the back-ported packages are available at Backported providers package page
Dependencies between packages are stored in airflow/providers/dependencies.json
. See
CONTRIBUTING.rst
Want to help build Apache Airflow? Check out our contributing documentation.
As the Apache Airflow community grows, we'd like to keep track of who is using the platform. Please send a PR with your company name and @githubhandle if you may.
Currently officially using Airflow:
- 4G Capital [@posei]
- 6play [@lemourA, @achaussende, @d-nguyen, @julien-gm]
- 8fit [@nicor88, @frnzska]
- 90 Seconds [@aaronmak]
- 99 [@fbenevides, @gustavoamigo & @mmmaia]
- AdBOOST [AdBOOST]
- Adobe [@mishikaSingh, @ramandumcs, @vardancse]
- Agari [@r39132]
- Agoda [@akki]
- Airbnb [@mistercrunch, @artwr]
- AirDNA
- Airfinity [@sibowyer]
- Airtel [@harishbisht]
- Akamas [@GiovanniPaoloGibilisco, @lucacavazzana]
- Alan [@charles-go]
- allegro.pl [@kretes]
- AloPeyk [@blcksrx, @AloPeyk]
- AltX [@pedromduarte]
- AMPATH[@AMPATH, @fatmali]
- Apigee [@btallman]
- ARGO Labs [@California Data Collaborative]
- ARMEDANGELS [@swiffer]
- Arquivei [@arquivei]
- Arrive
- Asana [@chang, @dima-asana, @jdavidheiser, @ricardoandresrojas]
- Astronomer [@schnie, @ashb, @kaxil, @dimberman, @andriisoldatenko, @ryw, @andrewhharmon]
- Auth0 [@sicarul]
- Automattic [@anandnalya, @bperson, @khrol, @xyu]
- Away [@trunsky]
- Azri Solutions [@userimack]
- Bagelcode
- BalanceHero [@swalloow]
- Banco de Formaturas [@guiligan]
- BandwidthX [@dineshdsharma]
- Basetis
- BBM
- Beamly [@christopheralcock]
- Beeswax
- Bellhops
- BelugaDB [@fabio-nukui & @joao-sallaberry & @lucianoviola & @tmatuki]
- Betterment [@betterment]
- Bexs Bank [@felipefb & @ilarsen]
- BigQuant [@bigquant]
- Birdz by Veolia [@benjamingrenier]
- BlaBlaCar [@puckel & @wmorin]
- Blacklane [@serkef]
- Bloc [@dpaola2]
- Bloomberg [@dimberman]
- Blue Yonder [@blue-yonder]
- BlueApron [@jasonjho & @matthewdavidhauser]
- Bluecore [@JLDLaughlin]
- Bluekiri [@Bluekiri]
- Boda Telecom Suite - CE [@erssebaggala, @bodastage]
- Bodastage Solutions [@erssebaggala, @bodastage]
- Bombora Inc [@jeffkpayne, @pakelley, @dNavalta, @austynh, @TheOriginalAlex]
- Bonial International GmbH
- Bonnier Broadcasting [@wileeam]
- BounceX [@JoshFerge, @hudsonrio, @ronniekritou]
- Braintree [@coopergillan, @curiousjazz77, @raymondberg]
- Branch [@sdebarshi, @dmitrig01]
- Caesars Entertainment
- California Data Collaborative powered by ARGO Labs
- Capital One [@anoopengineer]
- Carbonite [@ajbosco]
- CarLabs [@sganz & @odannyc]
- CAVA [@minh5 & @patchus]
- Celect [@superdosh & @chadcelect]
- Censys [@zakird, @dadrian, & @andrewsardone]
- Change.org [@change, @vijaykramesh]
- Chartboost [@cgelman & @dclubb]
- Checkr [@tongboh]
- Children's Hospital of Philadelphia Division of Genomic Diagnostics [@genomics-geek]
- Cinimex DataLab [@kdubovikov]
- City of San Diego [@MrMaksimize, @andrell81 & @arnaudvedy]
- City of Toronto [@CityofToronto, @radumas]
- ciValue [@chencivalue, @YoavGaudin, @saleem-boshnak]
- Civey [@WesleyBatista]
- Clairvoyant [@shekharv]
- Classmethod, Inc. [@shoito]
- Cleartax [@anks & @codebuff]
- Clover Health [@gwax & @vansivallab]
- Colgate-Palmolive [@fhoda]
- Collectivehealth Inc. [@retornam]
- Compass [@wdhorton]
- ConnectWise [@jacobeturpin]
- ContaAzul [@bern4rdelli, @renanleme & @sabino]
- Cotap [@maraca & @richardchew]
- Craig@Work
- Crealytics
- Credit Karma [@preete-dixit-ck & @harish-gaggar-ck & @greg-finley-ck]
- Creditas [@dcassiano]
- CreditCards.com[@vmAggies & @jay-wallaby]
- Cryptalizer.com
- Custom Ink [@david-dalisay, @dmartin11 & @mpeteuil]
- Cyscale [@ocical]
- Dailymotion [@germaintanguy & @hc]
- Danamica [@testvinder]
- Data Reply [@kaxil]
- DataCamp [@dgrtwo]
- DataFox [@sudowork]
- Dentsu Inc. [@bryan831 & @loozhengyuan]
- Digital First Media [@duffn & @mschmo & @seanmuth]
- DigitalOcean [@ajbosco]
- Digitas Pixelpark [@feluelle]
- DoorDash
- Dotmodus [@dannylee12]
- Drivy [@AntoineAugusti]
- Easy Taxi [@caique-lima & @diraol]
- EllisDon [@d2kalra & @zbasama]
- Endesa [@drexpp]
- Enigma [@hydrosquall]
- Datamaran [@valexharo]
- Etsy [@mchalek]
- evo.company [@orhideous]
- Experity (formerly DocuTAP) [@cloneluke & @tobyjoliver]
- Fathom Health
- Firestone Inventing [@zihengCat]
- Flipp [@sethwilsonwishabi]
- Format [@format & @jasonicarter]
- FreeNow [@freenowtech]
- FreshBooks [@DinoCow]
- Freshworks [@shaikshakeel]
- FullContact
- Fuller, Inc. [@wutali & @sh-tech]
- Fundera [@andyxhadji]
- G Adventures [@chchtv11, @tgumbley, @tomwross]
- GameWisp [@tjbiii & @theryanwalls]
- Geekie [@wolney]
- GeneCards [@oferze]
- Gentner Lab [@neuromusic]
- Get Simpl [@rootcss]
- GitLab [@tayloramurphy & @m_walker]
- Glassdoor [@syvineckruyk & @sid88in]
- Global Fashion Group [@GFG]
- GoDataDriven [@BasPH, @danielvdende, @ffinfo, @Fokko, @gglanzani, @hgrif, @jrderuiter, @NielsZeilemaker]
- Gojek [@gojek]
- GovTech GDS [@chrissng & @datagovsg]
- Grab [@calvintran]
- Gradeup [@gradeup]
- Grand Rounds [@richddr, @timz1290, @wenever, & @runongirlrunon]
- Groupalia [@jesusfcr]
- Groupon [@stevencasey]
- Growbots[@exploy]
- GSN Games
- Gusto [@frankhsu]
- Handshake [@mhickman]
- Handy [@marcintustin / @mtustin-handy]
- happn [@pcorbel]
- HAVAN [@botbiz]
- HBC Digital [@tmccartan & @dmateusp]
- HBO[@yiwang]
- Healthjump [@miscbits]
- HelloFresh [@tammymendt & @davidsbatista & @iuriinedostup]
- Hipages [@arihantsurana]
- Holimetrix [@thibault-ketterer]
- HomeToGo [@HomeToGo, @AurimasGr]
- Hootsuite
- Hostnfly [@CyrilLeMat & @pierrechopin & @alexisrosuel]
- HotelQuickly [@zinuzoid]
- Huq Industries [@huqindustries, @alepuccetti, @turbomerl]
- Iflix [@ChaturvediSulabh]
- IFTTT [@apurvajoshi]
- iHeartRadio[@yiwang]
- imgix [@dclubb]
- ING
- Instacart 🥕 [@arp1t & @code-sauce & @jasonlew & @j4p3 & @lubert & @mmontagna & @RyanAD &@zzadeh]
- Intercom [@fox & @paulvic]
- Interia
- Investorise [@svenvarkel]
- iS2.co [@iS2co]
- Jampp
- Jeitto [@BrennerPablo & @ds-mauri]
- Jetlore [@bderose]
- JobTeaser [@stefani75 & @knil-sama]
- JULO [@sepam & @tenapril & @verzqy]
- Kalibrr [@charlesverdad]
- Kargo [@chaithra-yenikapati, @akarsh3007 & @dineshanchan]
- Karmic [@hyw]
- King [@nathadfield]
- King Abdullah Petroleum Studies and Research Center(KAPSARC) [@saianupkumarp]
- Kiwi.com [@underyx]
- Kogan.com [@geeknam]
- Korbit [@jensenity]
- KPN B.V. [@biyanisuraj & @gmic]
- Kroton Educacional
- Lemann Foundation [@fernandosjp]
- LeMans Corporation [@alloydwhitlock] & [@tinyrye]
- LendUp [@lendup]
- LetsBonus [@jesusfcr & @OpringaoDoTurno]
- Liberty Global [@LibertyGlobal]
- liligo [@tromika]
- LingoChamp [@haitaoyao]
- Logitravel Group
- Los Angeles Times [@standyro]
- LokSuvidha [@saurabhwahile]
- Lucid [@jbrownlucid & @kkourtchikov]
- Lumos Labs [@rfroetscher & @zzztimbo]
- Lyft [@feng-tao, @milton0825, @astahlman, @youngyjd, @ArgentFalcon]
- M4U [@msantino]
- Madrone [@mbreining & @scotthb]
- Markovian [@al-xv, @skogsbaeck, @waltherg]
- Mercadoni [@demorenoc]
- Mercari [@yu-iskw]
- MFG Labs
- MiNODES [@dice89, @diazcelsa]
- Modernizing Medicine[@kehv1n, @dalupus]
- Movember
- Multiply [@nrhvyc]
- National Bank of Canada [@brilhana]
- Neoway [@neowaylabs]
- Nerdwallet
- New Relic [@marcweil]
- Newzoo [@newzoo-nexus]
- NEXT Trucking [@earthmancash2, @kppullin]
- Nextdoor [@SivaPandeti, @zshapiro & @jthomas123]
- Nine [@TheZepto]
- OdysseyPrime [@davideberdin]
- OfferUp
- OneFineStay [@slangwald]
- Open Knowledge International @vitorbaptista
- Optum - UnitedHealthGroup [@fhoda, @ianstanton, @nilaybhatt,@hiteshrd]
- Outcome Health [@mikethoun, @rolandotribo]
- Overstock [@mhousley & @mct0006]
- OVH [@ncrocfer & @anthonyolea]
- Pagar.me [@pagarme]
- Palo Alto Networks [@PaloAltoNetworks]
- Pandora Media [@Acehaidrey & @wolfier]
- PayFit [@pcorbel]
- PAYMILL [@paymill & @matthiashuschle]
- PayPal [@r39132 & @jhsenjaliya]
- Pecan [@ohadmata]
- Pernod-Ricard [@romain-nio]
- Plaid [@plaid, @AustinBGibbons & @jeeyoungk]
- Playbuzz [@clintonboys & @dbn]
- PMC [@andrewm4894]
- Polidea [@potiuk, @mschickensoup, @mik-laj, @turbaszek, @michalslowikowski00, @olchas]
- Poshmark
- Postmates [@syeoryn]
- Premise [@jmccallum-premise]
- Pronto Tools [@zkan & @mesodiar]
- proton.ai [@prmsolutions]
- PubNub [@jzucker2]
- PXYData [@patchus]
- Qplum [@manti]
- Quantopian [@eronarn]
- Qubole [@msumit]
- QuintoAndar [@quintoandar]
- Quizlet [@quizlet]
- Quora
- Qoala [@gnomeria, @qoala-engineering]
- Rakuten
- Raízen [@rudlac & @guifneves]
- Rapido [@ChethanUK]
- REA Group
- Reddit [@reddit]
- Reverb[@reverbdotcom]
- Revolut [@sztanko & @nautilus28]
- Robinhood [@vineet-rh]
- Scaleway [@kdeldycke]
- Seasoned [@joshuacano] & [@mmyers] & [@tjward]
- Secret Escapes [@secretescapes]
- Semantics3 [@abishekk92]
- Sense360 [@kamilmroczek]
- Sentry.io [@tiopi]
- ShopBack [@shopback]
- Shopkick [@shopkick]
- Sidecar [@getsidecar]
- SimilarWeb [@similarweb]
- Simply Business [@simplybusiness]
- Skyscanner [@skyscanner]
- SmartNews [@takus]
- SnapTravel
- SocialCops [@vinayak-mehta & @sharky93]
- Société générale [@medmrgh & @s83]
- Spotahome [@spotahome]
- SpotHero [@benjigoldberg]
- Spotify [@znichols]
- Square
- Stackspace
- StoneCo [@lgwacker]
- Strava [@strava, @dhuang & @liamstewart]
- Stripe [@jbalogh]
- Strongmind [@tomchapin & @wongstein]
- Surfline [@jawang35]
- T2 Systems [@unclaimedpants]
- Tails.com [@alanmcruickshank]
- TEK [@telac]
- Telefonica Innovation Alpha [@Alpha-Health]
- Telia Company
- Ternary Data [@mhousley, @JoeReis]
- Tesla [@thoralf-gutierrez]
- The Home Depot[@apekshithr]
- THE ICONIC [@revathijay] [@ilikedata]
- Thinking Machines [@marksteve]
- Thinknear [@d3cay1, @ccson, & @ababian]
- ThoughtWorks [@sann3]
- Thumbtack [@natekupp]
- Tictail
- Tile [@ranjanmanish]
- Tinder [@kbendick]
- Tink [@tink-ab]
- TokenAnalyst [@simonohanlon101, @ankitchiplunkar, @sidshekhar, @sp6pe]
- Tokopedia [@topedmaria]
- Trocafone [@idontdomath & @gseva & @ordonezf & @PalmaLeandro]
- Twine Labs [@ivorpeles]
- Twitter [@aoen]
- Ubisoft [@Walkoss]
- Udacity [@dandikunited, @simon-uc]
- United Airlines [@ilopezfr]
- Upsight
- VeeR VR [@pishilong]
- Veikkaus [@hixus]
- Vente-Exclusive.com [@alexvanboxel]
- Vevo [@csetiawan & @jerrygillespie]
- Vidio
- Ville de Montréal@VilledeMontreal]
- Vnomics [@lpalum]
- Walmart Labs [@bharathpalaksha, @vipul007ravi]
- Waze [@waze]
- WePay [@criccomini & @mtagle]
- WeTransfer [@coredipper & @higee & @azclub]
- Whistle Labs [@ananya77041]
- Wildlifestudios
- WiseBanyan
- Wooga
- WorldRemit [@boittega]
- Wrike [@eliseealex & teoretic6]
- Xero [@yan9yu & adamantnz]
- Xoom
- Yahoo!
- Yieldr [@ggeorgiadis]
- Zapier [@drknexus & @statwonk]
- Zego [@ruimffl, @james-welly, @ken-payne]
- Zendesk
- Zenly [@cerisier & @jbdalido]
- Zerodha [@johnnybravo-xyz]
- Zymergen
- Zynga
Airflow is the work of the community, but the core committers/maintainers are responsible for reviewing and merging PRs as well as steering conversation around new feature requests. If you would like to become a maintainer, please review the Apache Airflow committer requirements.
Yes! Be sure to abide by the Apache Foundation trademark policies and the Apache Airflow Brandbook. The most up to date logos are found in this repo and on the Apache Software Foundation website.