https://flyte.org logo
#ask-the-community
Title
# ask-the-community
s

Sebastian

09/27/2022, 5:42 AM
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

Ketan (kumare3)

09/27/2022, 6:18 AM
You can use if os.getenv(…): else …? Right
s

Sebastian

09/27/2022, 6:43 AM
That just moves the problem from paramaterizing on env var values to env var names
k

Katrina P

09/27/2022, 12:17 PM
I wonder if there's a way to do Domain specific vars?
k

Ketan (kumare3)

09/27/2022, 2:05 PM
Could we write up what we like? There are per project donation attributes
Would love to understand and get some requirements here
3 Views