Replies: 2 comments 1 reply
-
|
literally setting I am not sure if this is a good idea to influence scheduler's behaviour via API. I'd say any cahnge of scheduler behaviour should be done via deployment. What we COULD do instead we could have Airflow scheduler to respond to (for example) USR1 signal and have a way to pass it via the deployment). Converting it into discussion - maybe someone will have other ideas. |
Beta Was this translation helpful? Give feedback.
-
|
It seems like a very good feature to have. Perhaps instead of controlling it by setting Then, in the scheduling code, instead of just checking Edit: I guess my suggestion doesn't address pausing / unpausing the currently running scheduled DAGS. I'd like to have that too, though. My wish is to be able to pause everything cleanly, do an upgrade of Airflow, and then unpause only those things that I paused before. The context in which I want this: A helm-chart Airflow installation, where I have ~100 DAGs that run often, some of them long-running, and a few DAGs that have already been paused for whatever reason, and I want to upgrade Airflow with a minimum of tasks / DAGs failing because they were interrupted. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
add a global
/suspendand/resumeendpoint to the REST API (and corresponding CLI command) that would do the following for the entire airflow deployment:/suspendAIRFLOW__SCHEDULER__USE_JOB_SCHEDULE=False(if not already false) to prevent scheduler from scheduling more tasks409: Airflow is already suspended)/resume/suspendcallAIRFLOW__SCHEDULER__USE_JOB_SCHEDULEto whatever it was before the last/suspendcall409: Cannot resume an airflow that is not in suspended state)Use case/motivation
This could be really helpful for people wanting to pause everything:
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions