Last active
September 17, 2020 05:52
-
-
Save agalea91/9161e0a3d973ef01b93460691799f048 to your computer and use it in GitHub Desktop.
For medium blog post: Airflow Dynamic DAGs - Python Globals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for symbol in ("BTC", "ETH", "LTC", "XLM"): | |
dag = create_dag(symbol=symbol) | |
globals()["{}_dag".format(symbol.lower())] = dag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment