lazerg commented on issue #77753: URL: https://github.com/apache/airflow/issues/77753#issuecomment-7269081456
The system-wide default is already doable with a [cluster policy](https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/cluster-policies.html), a `task_policy` in `airflow_local_settings.py` runs when the worker parses the Dag, so it takes effect at execution time. Scope it by operator type since it also overrides an explicit `durable=True`: ```python from airflow.providers.google.cloud.operators.bigquery import BigQueryInsertJobOperator def task_policy(task): if isinstance(task, BigQueryInsertJobOperator): task.durable = False ``` For the clear part, since 3.4.0 clearing a task instance drops its stored job id by default (#72100), so a cleared task submits a fresh job unless you tick "keep task state" in the clear dialog. Only automatic retries still reconnect. --- Drafted-by: Claude Code (Claude Opus 5.5) (no human review before posting) -- 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]
