Is it good to NOT run adopt_or_reset_orphaned_tasks on startup ? #27983
Unanswered
NickYadance
asked this question in
Ideas
Replies: 1 comment 7 replies
-
You are not supposed to run multiple schedulers without SKIP_LOCK. You will have all kinds of weird errors if you do: https://airflow.apache.org/docs/apache-airflow/stable/concepts/scheduler.html
I suggest you upgrade to a DB that is supported and your problem will be gone. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The first
adopt_or_reset_orphaned_tasks
run is slow(~10sec) when restarting scheduler due to lots of ohphaned tasks generated, especially with KubernetesExecutor, which is making serial HTTP calls to adopt those tasks. And asadopt_or_reset_orphaned_tasks
can potentially lock all the orphaned task instances, multiple scheduler startup will be stuck for quite some time with database not supporting skip_lock.Not sure what side effects can have by keeping these ohphaned tasks while the scheduler is running, is it good to avoid it on startup ?
Beta Was this translation helpful? Give feedback.
All reactions