Open dagsir[bot] opened 10 months ago
It seems that the original conversation from slack got cut off, so here it is:
I have successfully defined a schedule as such
trip_update_schedule = ScheduleDefinition( job=master_inventory_list_job, cron_schedule="*/3 * * * *", )
It defaults to not enabled in the UI, I need to manually enable it to watch it work. How do I get around that in my code?
You can set a schedule to be enabled by default by using the default_status
option:
from dagster import DefaultScheduleStatus, ScheduleDefinition
trip_update_schedule = ScheduleDefinition(
job=master_inventory_list_job,
cron_schedule="*/3 * * * *",
default_status=DefaultScheduleStatus.RUNNING
)
Why is the schedule disabled by default? Is there any justification for this?
Issue from the Dagster Slack
This issue was generated from the slack conversation at: https://dagster.slack.com/archives/C01U954MEER/p1700181847255259?thread_ts=1700181847.255259&cid=C01U954MEER
Conversation excerpt
U060JC70DHC: I have successfully defined a schedule as such