amoghrajesh commented on issue #77753: URL: https://github.com/apache/airflow/issues/77753#issuecomment-7305665451
@emery-finkelstein Thx for reporting in detail. To explain what you hit in 3.3 - clearing a task kept its stored bq job id, so the rerun reconnected to the old job instead of submitting a new one. If that job had already succeeded, the task finished without running the query again. A failed job is not affected, since the retry sees it failed and submits fresh. Now, regarding what you recommend / ask - 1. Override on clear: As mentioned above, this is fixed in 3.4 (#72100). Clearing a task instance now drops its stored job id by default, so a cleared task always submits a fresh job. If you do want to keep it, tick "keep task state" in the clear dialog. Only automatic retries still reconnect. 2. System wide default: On 3.3, the cluster policy in the comment above works, since `durable` is read when the task runs. Although there is one drawback: the policy cannot tell a default from an explicit `durable=True`, so it also overrides tasks where a Dag author set it on purpose too, if it matters, With the 3.4 change (#72100) I don't think a new config option is needed for your workflow. If there is a wider ask for a deployment wide default, maybe we can consider to add one that only applies when the Dag doesn't set `durable` itself. Can you confirm the affected tasks had already succeeded before you cleared them? If so, lets close this in favour of #72100. -- 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]
