Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Variables to set Schedules #3

Closed
mikeghen opened this issue Dec 9, 2021 · 1 comment · Fixed by #5
Closed

Use Variables to set Schedules #3

mikeghen opened this issue Dec 9, 2021 · 1 comment · Fixed by #5

Comments

@mikeghen
Copy link
Contributor

mikeghen commented Dec 9, 2021

This task involves converting the schedules for each DAG to use a Variable. Create variables like:

distribution-schedule-interval -> "0 * * * *"
harvest-schedule-interval -> "0 0 * * *"

Then in the DAGs:

schedule_interval = Variables.get("distribution-schedule-interval", "0 * * * *")

 dag = DAG("ricochet_stream_watch",
          max_active_runs=1,
          catchup=False,
          default_args=default_args,
          schedule_interval=schedule_interval)
@mikeghen
Copy link
Contributor Author

Nice work @shreyaspapi

@mikeghen mikeghen removed the help wanted Extra attention is needed label Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant