pdellarciprete commented on issue #57618:
URL: https://github.com/apache/airflow/issues/57618#issuecomment-3656348901

   Hello @ephraimbuddy , 
   
   Unfortunately, with the patch you proposed the race condition between 2 
schedulers is still there :
   
   ```
   workflow-manager-scheduler-675c578dff-sj2cl - 2025-12-15T15:32:42.776467Z 
[info     ] Add task TaskInstanceKey(dag_id='sadp_dag_388', task_id='task_4', 
run_id='scheduled__2025-12-15T14:15:00+00:00', try_number=1, map_index=-1) with 
command [ExecuteTask(token='eyJ***', 
ti=TaskInstance(id=UUID('019b2296-3005-7a2c-b53e-41c91af5a050'), 
dag_version_id=UUID('019b1df3-2a94-72d0-8f3d-0f78264a606f'), task_id='task_4', 
dag_id='sadp_dag_388', run_id='scheduled__2025-12-15T14:15:00+00:00', 
try_number=1, map_index=-1, pool_slots=1, queue='default', priority_weight=2, 
executor_config={}, parent_context_carrier={}, context_carrier={}), 
dag_rel_path=PosixPath('sadp_dag_generator.py'), 
bundle_info=BundleInfo(name='dags-folder', version=None), 
log_path='dag_id=sadp_dag_388/run_id=scheduled__2025-12-15T14:15:00+00:00/task_id=task_4/attempt=1.log',
 type='ExecuteTask')] 
[airflow.providers.cncf.kubernetes.executors.kubernetes_executor.KubernetesExecutor]
 loc=kubernetes_executor.py:266
   workflow-manager-scheduler-675c578dff-5h82r - 2025-12-15T15:32:44.627322Z 
[info     ] Add task TaskInstanceKey(dag_id='sadp_dag_388', task_id='task_4', 
run_id='scheduled__2025-12-15T14:15:00+00:00', try_number=2, map_index=-1) with 
command [ExecuteTask(token='eyJ***', 
ti=TaskInstance(id=UUID('019b2296-3005-7a2c-b53e-41c91af5a050'), 
dag_version_id=UUID('019b1df3-2a94-72d0-8f3d-0f78264a606f'), task_id='task_4', 
dag_id='sadp_dag_388', run_id='scheduled__2025-12-15T14:15:00+00:00', 
try_number=2, map_index=-1, pool_slots=1, queue='default', priority_weight=2, 
executor_config={}, parent_context_carrier={}, context_carrier={}), 
dag_rel_path=PosixPath('sadp_dag_generator.py'), 
bundle_info=BundleInfo(name='dags-folder', version=None), 
log_path='dag_id=sadp_dag_388/run_id=scheduled__2025-12-15T14:15:00+00:00/task_id=task_4/attempt=2.log',
 type='ExecuteTask')] 
[airflow.providers.cncf.kubernetes.executors.kubernetes_executor.KubernetesExecutor]
 loc=kubernetes_executor.py:266
   ```
   
   


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