jedcunningham commented on a change in pull request #19904:
URL: https://github.com/apache/airflow/pull/19904#discussion_r760264857



##########
File path: airflow/executors/kubernetes_executor.py
##########
@@ -473,7 +472,7 @@ def clear_not_launched_queued_tasks(self, session=None) -> 
None:
             base_label_selector = (
                 f"dag_id={pod_generator.make_safe_label_value(task.dag_id)},"
                 f"task_id={pod_generator.make_safe_label_value(task.task_id)},"
-                
f"airflow-worker={pod_generator.make_safe_label_value(str(self.scheduler_job_id))}"
+                
f"airflow-worker={pod_generator.make_safe_label_value(str(task.queued_by_job_id))}"

Review comment:
       Yeah, that is exactly my plan eventually, generate a random identifier 
for the instance. Unfortunately I don't think we have anything we can use right 
now for that purpose.




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