ephraimbuddy commented on code in PR #63884:
URL: https://github.com/apache/airflow/pull/63884#discussion_r3225950467


##########
airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts:
##########
@@ -431,9 +431,9 @@ export type ClearTaskInstancesBody = {
     include_future?: boolean;
     include_past?: boolean;
     /**
-     * (Experimental) Run on the latest bundle version of the dag after 
clearing the task instances.
+     * (Experimental) Run on the latest bundle version of the dag after 
clearing the task instances. If not specified, uses the DAG-level or global 
configuration default.

Review Comment:
   There's currently no global default



##########
airflow-core/src/airflow/config_templates/config.yml:
##########
@@ -517,6 +517,19 @@ core:
       type: boolean
       example: ~
       default: "False"
+    rerun_with_latest_version:
+      description: |
+        Default value for whether cleared, rerun, or backfilled tasks should 
use
+        the latest bundle version. When set to True, reruns and backfills pick 
up
+        the latest code. When set to False, they use the original bundle 
version.
+        When unset, the fallback depends on the call site: False for clearing 
or
+        rerunning tasks, True for creating backfills (preserving the historical
+        defaults for each). Individual DAGs can override this with the
+        ``rerun_with_latest_version`` parameter.
+      type: boolean
+      example: ~
+      default: ~

Review Comment:
   We can have a default of False since this is a fallback? without that 
`conf.getboolean("core", "rerun_with_latest_version")` will fail without a 
fallback on it(didn't check though)



-- 
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]

Reply via email to