Hi all, consider a workflow ```launch_plan.LaunchP...
# ask-the-community
s
Hi all, consider a workflow
Copy code
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?
k
You can use if os.getenv(…): else …? Right
s
That just moves the problem from paramaterizing on env var values to env var names
k
I wonder if there's a way to do Domain specific vars?
k
Could we write up what we like? There are per project donation attributes
Would love to understand and get some requirements here
165 Views