Uh oh!
There was an error while loading. Please reload this page.
Prevent breaking scheduler on task_instance.priority_weight column has overflow value - #22784
Prevent breaking scheduler on task_instance.priority_weight column has overflow value#22784kosteev wants to merge 1 commit into
Conversation
uranusjr
commented
Apr 6, 2022
The fix is specific to Postgres I believe. Every database has different integer ranges so this will need to contain some if-else branches to cover each of them. Although honestly maybe it’s even better to just document this is a database limitation and you just can’t go over the limit. |
eladkal
commented
Apr 6, 2022
I agree but the point of concern is that this cause the scheduler to crash which is not good. |
uranusjr
commented
Apr 6, 2022
Yeah the scheduler should not crash, but perhaps we could catch the exception or something like that. I seem to recall there’s a similar situation for something else a while ago (datetime out of range?) |
I recall only #17003 which also caused scheduler crash with divide by zero |
ashb
commented
Apr 6, 2022
Is silently clamping it right, or should this be a parse time DAG import error? |
Ah found it, 2213635 So I guess the better fix here is to do something similar, check for Postgres, and prevent an out-of-bounds value to be assigned for Postgres specifically. +1 to an import error. |
kosteev
commented
Apr 7, 2022
All right, validating it during DAG import and throwing error makes sense. |
uranusjr
commented
Apr 7, 2022
Let’s start with adding just a check for Postgres now, we can add more later. |


closes: #22781