Skip to content
forked from apache/airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows

License

Notifications You must be signed in to change notification settings

Blackrobe/airflow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Airflow

PyPI version Airflow Coverage Status Documentation Status License PyPI - Python Version

Twitter Follow Slack Status

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

Apache Airflow is tested with:

Master version (2.0.0dev)

  • Python versions: 3.6, 3.7, 3.8
  • Postgres DB: 9.6, 10
  • MySQL DB: 5.7
  • Sqlite - latest stable (it is used mainly for development purpose)
  • Kubernetes - 1.16.2, 1.17.0

Stable version (1.10.9)

  • 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)
  • Kubernetes - 1.16.2, 1.17.0

Additional notes on Python version requirements

  • 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

Getting started

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.

Installing from PyPI

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/3.8). 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.

  1. 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
  1. 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

Beyond the Horizon

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.

Principles

  • 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.

User Interface

  • 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.

Using hooks and Operators from "master" in Airflow 1.10

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

Contributing

Want to help build Apache Airflow? Check out our contributing documentation.

Who uses Apache Airflow?

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:

  1. 4G Capital [@posei]
  2. 6play [@lemourA, @achaussende, @d-nguyen, @julien-gm]
  3. 8fit [@nicor88, @frnzska]
  4. 90 Seconds [@aaronmak]
  5. 99 [@fbenevides, @gustavoamigo & @mmmaia]
  6. AdBOOST [AdBOOST]
  7. Adobe [@mishikaSingh, @ramandumcs, @vardancse]
  8. Agari [@r39132]
  9. Agoda [@akki]
  10. Airbnb [@mistercrunch, @artwr]
  11. AirDNA
  12. Airfinity [@sibowyer]
  13. Airtel [@harishbisht]
  14. Akamas [@GiovanniPaoloGibilisco, @lucacavazzana]
  15. Alan [@charles-go]
  16. allegro.pl [@kretes]
  17. AloPeyk [@blcksrx, @AloPeyk]
  18. AltX [@pedromduarte]
  19. AMPATH[@AMPATH, @fatmali]
  20. Apigee [@btallman]
  21. ARGO Labs [@California Data Collaborative]
  22. ARMEDANGELS [@swiffer]
  23. Arquivei [@arquivei]
  24. Arrive
  25. Asana [@chang, @dima-asana, @jdavidheiser, @ricardoandresrojas]
  26. Astronomer [@schnie, @ashb, @kaxil, @dimberman, @andriisoldatenko, @ryw, @andrewhharmon]
  27. Auth0 [@sicarul]
  28. Automattic [@anandnalya, @bperson, @khrol, @xyu]
  29. Away [@trunsky]
  30. Azri Solutions [@userimack]
  31. Bagelcode
  32. BalanceHero [@swalloow]
  33. Banco de Formaturas [@guiligan]
  34. BandwidthX [@dineshdsharma]
  35. Basetis
  36. BBM
  37. Beamly [@christopheralcock]
  38. Beeswax
  39. Bellhops
  40. BelugaDB [@fabio-nukui & @joao-sallaberry & @lucianoviola & @tmatuki]
  41. Betterment [@betterment]
  42. Bexs Bank [@felipefb & @ilarsen]
  43. BigQuant [@bigquant]
  44. Birdz by Veolia [@benjamingrenier]
  45. BlaBlaCar [@puckel & @wmorin]
  46. Blacklane [@serkef]
  47. Bloc [@dpaola2]
  48. Bloomberg [@dimberman]
  49. Blue Yonder [@blue-yonder]
  50. BlueApron [@jasonjho & @matthewdavidhauser]
  51. Bluecore [@JLDLaughlin]
  52. Bluekiri [@Bluekiri]
  53. Boda Telecom Suite - CE [@erssebaggala, @bodastage]
  54. Bodastage Solutions [@erssebaggala, @bodastage]
  55. Bombora Inc [@jeffkpayne, @pakelley, @dNavalta, @austynh, @TheOriginalAlex]
  56. Bonial International GmbH
  57. Bonnier Broadcasting [@wileeam]
  58. BounceX [@JoshFerge, @hudsonrio, @ronniekritou]
  59. Braintree [@coopergillan, @curiousjazz77, @raymondberg]
  60. Branch [@sdebarshi, @dmitrig01]
  61. Caesars Entertainment
  62. California Data Collaborative powered by ARGO Labs
  63. Capital One [@anoopengineer]
  64. Carbonite [@ajbosco]
  65. CarLabs [@sganz & @odannyc]
  66. CAVA [@minh5 & @patchus]
  67. Celect [@superdosh & @chadcelect]
  68. Censys [@zakird, @dadrian, & @andrewsardone]
  69. Change.org [@change, @vijaykramesh]
  70. Chartboost [@cgelman & @dclubb]
  71. Checkr [@tongboh]
  72. Children's Hospital of Philadelphia Division of Genomic Diagnostics [@genomics-geek]
  73. Cinimex DataLab [@kdubovikov]
  74. City of San Diego [@MrMaksimize, @andrell81 & @arnaudvedy]
  75. City of Toronto [@CityofToronto, @radumas]
  76. ciValue [@chencivalue, @YoavGaudin, @saleem-boshnak]
  77. Civey [@WesleyBatista]
  78. Clairvoyant [@shekharv]
  79. Classmethod, Inc. [@shoito]
  80. Cleartax [@anks & @codebuff]
  81. Clover Health [@gwax & @vansivallab]
  82. Colgate-Palmolive [@fhoda]
  83. Collectivehealth Inc. [@retornam]
  84. Compass [@wdhorton]
  85. ConnectWise [@jacobeturpin]
  86. ContaAzul [@bern4rdelli, @renanleme & @sabino]
  87. Cotap [@maraca & @richardchew]
  88. Craig@Work
  89. Crealytics
  90. Credit Karma [@preete-dixit-ck & @harish-gaggar-ck & @greg-finley-ck]
  91. Creditas [@dcassiano]
  92. CreditCards.com[@vmAggies & @jay-wallaby]
  93. Cryptalizer.com
  94. Custom Ink [@david-dalisay, @dmartin11 & @mpeteuil]
  95. Cyscale [@ocical]
  96. Dailymotion [@germaintanguy & @hc]
  97. Danamica [@testvinder]
  98. Data Reply [@kaxil]
  99. DataCamp [@dgrtwo]
  100. DataFox [@sudowork]
  101. Dentsu Inc. [@bryan831 & @loozhengyuan]
  102. Deseret Digital Media [@formigone
  103. Digital First Media [@duffn & @mschmo & @seanmuth]
  104. DigitalOcean [@ajbosco]
  105. Digitas Pixelpark [@feluelle]
  106. DoorDash
  107. Dotmodus [@dannylee12]
  108. Drivy [@AntoineAugusti]
  109. Easy Taxi [@caique-lima & @diraol]
  110. EllisDon [@d2kalra & @zbasama]
  111. Endesa [@drexpp]
  112. Enigma [@hydrosquall]
  113. Datamaran [@valexharo]
  114. Etsy [@mchalek]
  115. evo.company [@orhideous]
  116. Experity (formerly DocuTAP) [@cloneluke & @tobyjoliver]
  117. Fathom Health
  118. Firestone Inventing [@zihengCat]
  119. Flipp [@sethwilsonwishabi]
  120. Format [@format & @jasonicarter]
  121. FreeNow [@freenowtech]
  122. FreshBooks [@DinoCow]
  123. Freshworks [@shaikshakeel]
  124. FullContact
  125. Fuller, Inc. [@wutali & @sh-tech]
  126. Fundera [@andyxhadji]
  127. G Adventures [@chchtv11, @tgumbley, @tomwross]
  128. GameWisp [@tjbiii & @theryanwalls]
  129. Geekie [@wolney]
  130. GeneCards [@oferze]
  131. Gentner Lab [@neuromusic]
  132. Get Simpl [@rootcss]
  133. GitLab [@tayloramurphy & @m_walker]
  134. Glassdoor [@syvineckruyk & @sid88in]
  135. Global Fashion Group [@GFG]
  136. GoDataDriven [@BasPH, @danielvdende, @ffinfo, @Fokko, @gglanzani, @hgrif, @jrderuiter, @NielsZeilemaker]
  137. Gojek [@gojek]
  138. GovTech GDS [@chrissng & @datagovsg]
  139. Grab [@calvintran]
  140. Gradeup [@gradeup]
  141. Grand Rounds [@richddr, @timz1290, @wenever, & @runongirlrunon]
  142. Greytip [@greytip]
  143. Groupalia [@jesusfcr]
  144. Groupon [@stevencasey]
  145. Growbots[@exploy]
  146. GSN Games
  147. Gusto [@frankhsu]
  148. Handshake [@mhickman]
  149. Handy [@marcintustin / @mtustin-handy]
  150. happn [@pcorbel]
  151. HAVAN [@botbiz]
  152. HBC Digital [@tmccartan & @dmateusp]
  153. HBO[@yiwang]
  154. Healthjump [@miscbits]
  155. HelloFresh [@tammymendt & @davidsbatista & @iuriinedostup]
  156. Hipages [@arihantsurana]
  157. Holimetrix [@thibault-ketterer]
  158. HomeToGo [@HomeToGo, @AurimasGr]
  159. Hootsuite
  160. Hostnfly [@CyrilLeMat & @pierrechopin & @alexisrosuel]
  161. HotelQuickly [@zinuzoid]
  162. Huq Industries [@huqindustries, @alepuccetti, @turbomerl]
  163. Iflix [@ChaturvediSulabh]
  164. IFTTT [@apurvajoshi]
  165. iHeartRadio[@yiwang]
  166. imgix [@dclubb]
  167. ING
  168. Instacart 🥕 [@arp1t & @code-sauce & @jasonlew & @j4p3 & @lubert & @mmontagna & @RyanAD &@zzadeh]
  169. Intercom [@fox & @paulvic]
  170. Interia
  171. Investorise [@svenvarkel]
  172. iS2.co [@iS2co]
  173. Jampp
  174. Jeitto [@BrennerPablo & @ds-mauri]
  175. Jetlore [@bderose]
  176. JobTeaser [@stefani75 & @knil-sama]
  177. JULO [@sepam & @tenapril & @verzqy]
  178. Kalibrr [@charlesverdad]
  179. Kargo [@chaithra-yenikapati, @akarsh3007 & @dineshanchan]
  180. Karmic [@hyw]
  181. King [@nathadfield]
  182. King Abdullah Petroleum Studies and Research Center(KAPSARC) [@saianupkumarp]
  183. Kiwi.com [@underyx]
  184. Kogan.com [@geeknam]
  185. Korbit [@jensenity]
  186. KPN B.V. [@biyanisuraj & @gmic]
  187. Kroton Educacional
  188. Lemann Foundation [@fernandosjp]
  189. LeMans Corporation [@alloydwhitlock] & [@tinyrye]
  190. LendUp [@lendup]
  191. LetsBonus [@jesusfcr & @OpringaoDoTurno]
  192. Liberty Global [@LibertyGlobal]
  193. liligo [@tromika]
  194. LingoChamp [@haitaoyao]
  195. Logitravel Group
  196. Los Angeles Times [@standyro]
  197. LokSuvidha [@saurabhwahile]
  198. Lucid [@jbrownlucid & @kkourtchikov]
  199. Lumos Labs [@rfroetscher & @zzztimbo]
  200. Lyft [@feng-tao, @milton0825, @astahlman, @youngyjd, @ArgentFalcon]
  201. M4U [@msantino]
  202. Madrone [@mbreining & @scotthb]
  203. Markovian [@al-xv, @skogsbaeck, @waltherg]
  204. Mercadoni [@demorenoc]
  205. Mercari [@yu-iskw]
  206. MFG Labs
  207. MiNODES [@dice89, @diazcelsa]
  208. Modernizing Medicine[@kehv1n, @dalupus]
  209. Movember
  210. Multiply [@nrhvyc]
  211. National Bank of Canada [@brilhana]
  212. Neoway [@neowaylabs]
  213. Nerdwallet
  214. New Relic [@marcweil]
  215. Newzoo [@newzoo-nexus]
  216. NEXT Trucking [@earthmancash2, @kppullin]
  217. Nextdoor [@SivaPandeti, @zshapiro & @jthomas123]
  218. Nine [@TheZepto]
  219. OdysseyPrime [@davideberdin]
  220. OfferUp
  221. OneFineStay [@slangwald]
  222. Open Knowledge International @vitorbaptista
  223. Optum - UnitedHealthGroup [@fhoda, @ianstanton, @nilaybhatt,@hiteshrd]
  224. OrangeBank [@HamzaBoukraa]
  225. Outcome Health [@mikethoun, @rolandotribo]
  226. Overstock [@mhousley & @mct0006]
  227. OVH [@ncrocfer & @anthonyolea]
  228. Pagar.me [@pagarme]
  229. Palo Alto Networks [@PaloAltoNetworks]
  230. Pandora Media [@Acehaidrey & @wolfier]
  231. Paraná Banco [@lopesdiego12]
  232. PayFit [@pcorbel]
  233. PAYMILL [@paymill & @matthiashuschle]
  234. PayPal [@r39132 & @jhsenjaliya]
  235. Pecan [@ohadmata]
  236. Pernod-Ricard [@romain-nio]
  237. Plaid [@plaid, @AustinBGibbons & @jeeyoungk]
  238. Playbuzz [@clintonboys & @dbn]
  239. PMC [@andrewm4894]
  240. Polidea [@potiuk, @mschickensoup, @mik-laj, @turbaszek, @michalslowikowski00, @olchas]
  241. Poshmark
  242. Postmates [@syeoryn]
  243. Premise [@jmccallum-premise]
  244. Promofarma [@JavierLopezT]
  245. Pronto Tools [@zkan & @mesodiar]
  246. proton.ai [@prmsolutions]
  247. PubNub [@jzucker2]
  248. PXYData [@patchus]
  249. Qplum [@manti]
  250. Quantopian [@eronarn]
  251. Qubole [@msumit]
  252. QuintoAndar [@quintoandar]
  253. Quizlet [@quizlet]
  254. Quora
  255. Qoala [@gnomeria, @qoala-engineering]
  256. Rakuten
  257. RaĂ­zen [@rudlac & @guifneves]
  258. Rapido [@ChethanUK]
  259. REA Group
  260. Reddit [@reddit]
  261. Reverb[@reverbdotcom]
  262. Revolut [@sztanko & @nautilus28]
  263. Robinhood [@vineet-rh]
  264. Scaleway [@kdeldycke]
  265. Seasoned [@joshuacano] & [@mmyers] & [@tjward]
  266. Secret Escapes [@secretescapes]
  267. Semantics3 [@abishekk92]
  268. Sense360 [@kamilmroczek]
  269. Sentry.io [@tiopi]
  270. ShopBack [@shopback]
  271. Shopkick [@shopkick]
  272. Sidecar [@getsidecar]
  273. SimilarWeb [@similarweb]
  274. Simply Business [@simplybusiness]
  275. Skyscanner [@skyscanner]
  276. SmartNews [@takus]
  277. SnapTravel
  278. SocialCops [@vinayak-mehta & @sharky93]
  279. Société générale [@medmrgh & @s83]
  280. Spotahome [@spotahome]
  281. SpotHero [@benjigoldberg]
  282. Spotify [@znichols]
  283. Square
  284. Stackspace
  285. StoneCo [@lgwacker]
  286. Strava [@strava, @dhuang & @liamstewart]
  287. Stripe [@jbalogh]
  288. Strongmind [@tomchapin & @wongstein]
  289. Surfline [@jawang35]
  290. T2 Systems [@unclaimedpants]
  291. Tails.com [@alanmcruickshank]
  292. TEK [@telac]
  293. Telefonica Innovation Alpha [@Alpha-Health]
  294. Telia Company
  295. Ternary Data [@mhousley, @JoeReis]
  296. Tesla [@thoralf-gutierrez]
  297. The Home Depot[@apekshithr]
  298. THE ICONIC [@revathijay] [@ilikedata]
  299. Thinking Machines [@marksteve]
  300. Thinknear [@d3cay1, @ccson, & @ababian]
  301. ThoughtWorks [@sann3]
  302. Thumbtack [@natekupp]
  303. Tictail
  304. Tile [@ranjanmanish]
  305. Tinder [@kbendick]
  306. Tink [@tink-ab]
  307. TokenAnalyst [@simonohanlon101, @ankitchiplunkar, @sidshekhar, @sp6pe]
  308. Tokopedia [@topedmaria]
  309. Trocafone [@idontdomath & @gseva & @ordonezf & @PalmaLeandro]
  310. Twine Labs [@ivorpeles]
  311. Twitter [@aoen]
  312. Ubisoft [@Walkoss]
  313. Udacity [@dandikunited, @simon-uc]
  314. United Airlines [@ilopezfr]
  315. Upsight
  316. VeeR VR [@pishilong]
  317. Veikkaus [@hixus]
  318. Vente-Exclusive.com [@alexvanboxel]
  319. Vevo [@csetiawan & @jerrygillespie]
  320. Vidio
  321. Ville de Montréal@VilledeMontreal]
  322. Vnomics [@lpalum]
  323. Walmart Labs [@bharathpalaksha, @vipul007ravi]
  324. Waze [@waze]
  325. WePay [@criccomini & @mtagle]
  326. WeTransfer [@coredipper & @higee & @azclub]
  327. Whistle Labs [@ananya77041]
  328. Wildlifestudios
  329. WiseBanyan
  330. Wooga
  331. WorldRemit [@boittega]
  332. Wrike [@eliseealex & teoretic6]
  333. Xero [@yan9yu & adamantnz]
  334. Xoom
  335. Yahoo!
  336. Yieldr [@ggeorgiadis]
  337. Zapier [@drknexus & @statwonk]
  338. Zego [@ruimffl, @james-welly, @ken-payne]
  339. Zendesk
  340. Zenly [@cerisier & @jbdalido]
  341. Zerodha [@johnnybravo-xyz]
  342. Zymergen
  343. Zynga

Who Maintains Apache Airflow?

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.

Can I use the Apache Airflow logo in my presentation?

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.

Links

About

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 95.3%
  • Shell 2.9%
  • HTML 1.3%
  • JavaScript 0.3%
  • CSS 0.1%
  • Dockerfile 0.1%