Replies: 1 comment 1 reply
-
I've never seen a sensor dynamically create a schedule definition. I think schedule definitions must be present in the user code before Dagster is deployed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
im trying to create a schedule dynamically based on a trigger ( which is a sensor event ).
the code shows that everything is working fine, no exception, even all logs are going well.
except that no schedules has been created.
To explain my requirement, here’s the context:
I already have several jobs defined, and I can trigger them using sensors. However, I need the ability to schedule a job dynamically with a specific configuration.
Example:
I have a job called fetch_news, which reads news from an RSS source.
One source updates once a day, so the job should run daily.
Another source updates three times a day, so the same job should run with a different schedule.
My sources can scale over time, meaning new sources and their corresponding schedules can be added dynamically.
Currently, creating a separate schedule for each job/configuration manually (or hardcoding them) doesn’t feel scalable or efficient.
What I’d like to achieve is:
Be able to dynamically send new configurations, including the schedule (e.g., a cron expression) from an external system via sensors such as a publisher in Redis as my example.
Dagster would then automatically create or adjust the corresponding schedule for the job without requiring manual intervention or predefined schedules.
if it's possible and with the vision design of dagster need to be shown on the list of schedules and the UI.
an error if it's not possible ( as the graphQL ... ).
dynamic_schedules
is a global variable that returned by the repository.dagster, version 1.9.3
Beta Was this translation helpful? Give feedback.
All reactions