[AIRFLOW-3515] Remove the run_duration option#4320
Conversation
7f054f8 to
e4559e0
Compare
Codecov Report
@@ Coverage Diff @@
## master #4320 +/- ##
==========================================
- Coverage 78.59% 78.12% -0.48%
==========================================
Files 204 202 -2
Lines 16453 16479 +26
==========================================
- Hits 12932 12874 -58
- Misses 3521 3605 +84
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Should we remove num_runs as well, then?
There was a problem hiding this comment.
Good point Kaxil, I've created a ticket: https://jira.apache.org/jira/browse/AIRFLOW-3533
We should not use the `run_duration` option anymore. This used to be for restarting the scheduler from time to time, but right now the scheduler is getting more stable and therefore using this setting is considered bad and might cause an inconsistent state,
2816e09 to
4359aa5
Compare
|
I've rebased onto master and resolved the conflicts |
|
Thanks @Fokko |
|
@Fokko Actually I was looking for this feature even with 1.10.10 as many times restarting the scheduler solved problems that came up. For example, tasks that stuck in queued state and not being invoked by KubernetesExecutor. |
|
@shargal Restarting the scheduler isn't really a proper solution, right? Feels a bit like; have you tried turning it off and on again. Would be cool if we could isolate the problem of why the tasks get stuck or add logic to check which tasks are stuck and retry them. |
|
@shargal We've experienced similar issues at @godatadriven, this fixed itself by upgrading to the latest version. |
We should not use the
run_durationoption anymore.This used to be for restarting the scheduler from time to time,
but right now the scheduler is getting more stable and therefore
using this setting is considered bad and might cause an inconsistent
state,
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation
Code Quality
flake8