launch_plan.LaunchPlan.get_or_create(
workflow=wf,
name="my_wf_prod", # prod specific
schedule=CronSchedule(schedule="1 0 * * *"),
default_inputs={
"execution_date": datetime.now(), # aside: this does not work. How do I provide an execution date?
},
fixed_inputs={
"out_path": consts.OUT_S3_PATH_PROD # prod specific vars
},
)
there is also a copy of this launch plan for the dev env, so that I can plug in the dev env vars. But this is silly and requires two copies. How can I parameterize workflows with something like env vars so I can vary them between prod and dev?
f
freezing-airport-6809
09/27/2022, 6:18 AM
You can use if os.getenv(…): else …? Right
w
worried-lighter-79998
09/27/2022, 6:43 AM
That just moves the problem from paramaterizing on env var values to env var names
l
limited-dog-47035
09/27/2022, 12:17 PM
I wonder if there's a way to do Domain specific vars?
f
freezing-airport-6809
09/27/2022, 2:05 PM
Could we write up what we like? There are per project donation attributes
freezing-airport-6809
09/27/2022, 2:05 PM
Would love to understand and get some requirements here