Replies: 1 comment 4 replies
-
|
Hey, I came across similar use case, during my work. Few Steps how to reproduce:
Code for reference: Behaviour: My assumtions: I have tested An expand of expand might work for this to limit the heavy Update query to DB. Is my understanding correct ? Any suggestions on the pseudocode approach? Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First of all, thanks for this wonderful project.
There is one issue I am facing lately.
I am using
TriggerDagRunOperator.partial(...).expand(...)to spawn multiple processing dags.While this works well while having less than 1024 dags to be spawned, with higher number, which is approx. 5000 I am getting following error message from the PostgreSQL:
sqlalchemy.exc.OperationalError: (psycopg2.errors.StatementTooComplex) stack depth limit exceededwhich is received duringdag_run.schedule_tisupdating the DB state to SCHEDULED.Increasing the stack depth does not seem like a good idea, rather it feels like I should prevent all TIS to be updated at the same time.
Will putting a limit on
max_active_tis_per_dagresolve this issue? If not, is there any other way to tackle this if I want to execute lets say 10000 dags over time?Thanks,
Filip
Beta Was this translation helpful? Give feedback.
All reactions