dabla commented on PR #62922: URL: https://github.com/apache/airflow/pull/62922#issuecomment-7326562713
Thanks for the thorough review. All threads are addressed except the partial skip (thread 6), where I asked which behaviour you prefer. Your review found things our own passes had missed, so before coming back I ran the same kind of pass myself: a regression check of every earlier review thread (none regressed) and an adversarial read of the whole PR. That found more of the same classes, which are fixed in this push too. The ones that change behaviour: - a state store that is away at the end no longer fails a task whose indexed tasks all succeeded; - a killed run ends with a failure the runner retries, like a plain task, instead of failing without a retry; - a task that passes an iterated result on stores the values, not a reference to the producer's XComs; - a checkpoint for an input that has no fingerprint is not replayed; - an empty or fully skipped input leaves an empty result, as after `.expand()` over nothing; - input reads no longer hold a failed run for the default executor's join; - a `SystemExit` or `KeyboardInterrupt` in an async indexed task is handled like in a sync one; - a success or skip callback runs once per outcome, after the result is pushed: the outcome records whether its callback has still to run, and a retry that replays it runs the callback only then; - a kill no longer waits without end for a sync indexed task stuck in blocking code that its `on_kill` does not end: ten seconds after the kill was served the run stops waiting and ends as killed. One thing found on the way is not this PR's: a clear does not discard the task state held by a custom `[state_store] backend`, so a cleared iterated task would resume from its checkpoints there. That was already noted in the review of #72100; I opened #77909 to track it, and the docs page names the exception. The docs page lists the remaining differences from `.expand()` in its comparison table. The hot-path benchmark is below the previous head on every case: the upstream-input case is 15% lower (the fingerprint is hashed once), and the executor's map no longer goes through `asyncio.wait`, which takes another 1 to 2% off the others. -- 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]
