https://dagster.io/ logo
Title
m

Muthu

05/20/2021, 7:16 PM
hi… how can i set environment variable in dagster.yaml under
scheduler
?
i can add the environment variables in the scheduler definition
return ScheduleDefinition(
        name="sample",
        cron_schedule="0 6,18 * * *",
        pipeline_name="demo",
        environment_dict=pipeline_config,
        environment_vars={
            key: os.environ.get(key)
            for key in [
                'KEY1',
                'KEY2'
            ]
            if key in os.environ
        }
    )
a

alex

05/21/2021, 3:04 PM
can you expand on your question? I don’t quite follow