GitHub user Neon-Face added a comment to the discussion: [Bug] 
`standard.operators.python` fails the task randomly

Here is more information:

```
[2025-08-13T13:42:21.050+0000] {scheduler_job_runner.py:451} INFO - 1 tasks up 
for execution:                                                  
        <TaskInstance: Insights_Market_Concentration.upsert_datasette 
manual__2025-08-13T13:41:05.454607+00:00 [scheduled]>                    
[2025-08-13T13:42:21.050+0000] {scheduler_job_runner.py:523} INFO - DAG 
Insights_Market_Concentration has 0/32 running and queued tasks        
[2025-08-13T13:42:21.051+0000] {scheduler_job_runner.py:662} INFO - Setting the 
following tasks to queued state:                               
        <TaskInstance: Insights_Market_Concentration.upsert_datasette 
manual__2025-08-13T13:41:05.454607+00:00 [scheduled]>
[2025-08-13T13:42:21.051+0000] {scheduler_job_runner.py:768} INFO - **Trying to 
enqueue tasks**: [<TaskInstance: Insights_Market_Concentration.upse
rt_datasette manual__2025-08-13T13:41:05.454607+00:00 [scheduled]>] for 
executor: LocalExecutor(parallelism=64)
2025-08-13 13:42:21 [info     ] **Secrets backends loaded for worker 
[supervisor] backend_classes=['EnvironmentVariablesBackend'] count=1**
[2025-08-13T13:42:21.097+0000] {_client.py:1026} INFO - HTTP Request: PATCH 
http://localhost:8080/execution/task-instances/0198a3aa-9aca-7d4c-b
1c2-f060389bb89d/run "HTTP/1.1 409 Conflict"
2025-08-13 13:42:21 [warning  ] Server error                   
[airflow.sdk.api.client] detail={'detail': {'reason': 'invalid_state', 'message'
: **'TI was not in a state where it could be marked as running', 
'previous_state': 'scheduled'}}**
2025-08-13 13:42:21 [info     ] Process exited                 [supervisor] 
exit_code=<Negsignal.SIGKILL: -9> pid=1931241 signal_sent=SIGKILL
[2025-08-13T13:42:21.132+0000] {local_executor.py:96} ERROR - uhoh
```


So i guess task instance jumped from `scheduled` to `running` for some reason(?)

GitHub link: 
https://github.com/apache/airflow/discussions/54534#discussioncomment-14113666

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to