Join Slack
Powered by
Hello everyone, I'm creating a POC for dagster to ...
# ask-community
r
Robert Balaban
04/11/2022, 1:56 PM
Hello everyone, I'm creating a POC for dagster to try and see the features and how it would work and have a graph, which runs on a set schedule, ex. everyday at 00:05, how can I get the date dynamically and pass it through the Ops used in the graph?
Robert Balaban
04/11/2022, 1:58 PM
Is it as simple as accessing the
Copy code
context.scheduled_execution_time in my OPs
( This is from the docs )
s
sandy
04/11/2022, 3:31 PM
Hi
@Robert Balaban
- the typical way to do this is through configuration. For example, here's a docs example of an op that accepts configuration from a schedule:
https://docs.dagster.io/concepts/partitions-schedules-sensors/schedules#a-schedule-that-provides-custom-run-config-and-tags
If you want every op in the job to have access to the same config, one way to do that is through a resource:
https://docs.dagster.io/concepts/configuration/config-schema#passing-configuration-to-multiple-ops-in-a-job
y
yuhan
06/16/2022, 12:34 AM
@Dagster Bot
discussion How can I pass the scheduled date dynamically through the ops
d
Dagster Bot
06/16/2022, 12:34 AM
Question in the thread has been surfaced to GitHub Discussions for future discoverability:
https://github.com/dagster-io/dagster/discussions/8426
Open in Slack
Previous
Next