penfree opened a new pull request #10420:
URL: https://github.com/apache/airflow/pull/10420
now, KubernetesPodOperator will check if there is a existing pod of this
task, if the task matches, the pod can be reused. But is does not filter
completed or failed pods. when the task failed, it cannot be retried because
there is already one failed pod with the label.
```
[2020-08-19 23:14:56,770] {{taskinstance.py:1150}} ERROR - Pod Launching
failed: More than one pod running with labels:
dag_id=IncrementDataBuild_wjwjyrmyy,execution_date=2020-08-19T164816.2350170000-ac196c6dc,task_id=exportdata-wjwjyrmyy
Traceback (most recent call last):
File
"/usr/local/lib/python3.7/site-packages/airflow/contrib/operators/kubernetes_pod_operator.py",
line 276, in execute
'{label_selector}'.format(label_selector=label_selector))
airflow.exceptions.AirflowException: More than one pod running with labels:
dag_id=build,execution_date=2020-08-19T164816.2350170000-ac196c6dc,task_id=exportdata
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]