ephraimbuddy commented on code in PR #23720:
URL: https://github.com/apache/airflow/pull/23720#discussion_r993040333
##########
airflow/executors/kubernetes_executor.py:
##########
@@ -464,7 +464,9 @@ def clear_not_launched_queued_tasks(self, session=None) ->
None:
if not self.kube_client:
raise AirflowException(NOT_STARTED_MESSAGE)
- query = session.query(TaskInstance).filter(TaskInstance.state ==
State.QUEUED)
+ query = session.query(TaskInstance).filter(
+ TaskInstance.state == State.QUEUED, TaskInstance.queued_by_job_id
== self.job_id
+ )
Review Comment:
Sorry for taking so long to come to this PR, I was on vacation.
If I understand correctly, this is the main change addressing the issue in
this PR. Can we have only this change plus the test on this PR? All other
changes should be moved to a new PR. This helps us track changes and it's more
specific to the issue being resolved too
--
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]