dheerajturaga commented on issue #22006: URL: https://github.com/apache/airflow/issues/22006#issuecomment-5308111056
@potiuk, @jscheffl, @eladkal Revisiting this since a lot has changed since the initial discussion. I see both variants of pause "freeze immediately" and "allow existing dag runs to finish" valid and very useful. I would like to see a drain existing runs option myself aswell. I like @eladkal proposal of a `pause_mode: "suspend" (default) | "drain"` and "drain eventually is switched to paused when the drain is completed" @jscheffl On the scheduler-performance concern, `dag.is_paused` has no index today, so the existing gating already assumes a predicate on the already-joined dag row is cheap. A mode check on that same row is the same cost class, and only ever set transiently. If everyone is in alignment, I can take a jab at this -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
