pierrejeambrun commented on code in PR #45349:
URL: https://github.com/apache/airflow/pull/45349#discussion_r1929001913


##########
airflow/ui/src/queries/useClearTaskInstances.ts:
##########
@@ -59,18 +59,25 @@ export const useClearTaskInstances = ({
     if (variables.requestBody.dry_run) {
       onSuccessDryRun(data);
     } else {
-      const taskInstanceKeys = (variables.requestBody.task_ids ?? [])
-        .map((taskId) => {
-          const runId = variables.requestBody.dag_run_id;
+      const taskInstanceKeys = [
+        ...new Set(

Review Comment:
   Maybe a comment here on why we can encounter multiple times the same 
task_id. (people clearing multiple map index of the same task_id).



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