vatsrahul1001 commented on issue #53682:
URL: https://github.com/apache/airflow/issues/53682#issuecomment-3241173503
I am not getting the above error now we can trigger now; however, getting
the below error now running `airflow dags test`
```
[2025-09-01T07:24:25.611+0000] {dag.py:1349} INFO - [DAG TEST] end task
task_id=sleep map_index=-1
[2025-09-01T07:24:25.611+0000] {dag.py:1292} INFO - [DAG TEST] starting
task_id=templated map_index=-1
[2025-09-01T07:24:25.611+0000] {dag.py:1295} INFO - [DAG TEST] running task
<TaskInstance: tutorial.templated manual__2025-09-01T07:24:23.295650+00:00
[scheduled]>
2025-09-01 07:24:26 [debug ] Starting task instance run
hostname=33dafbd4e807 pid=55183 ti_id=01990429-a98e-7752-8c01-d72925f6d03f
unixname=root
2025-09-01 07:24:26 [debug ] Retrieved task instance details
dag_id=tutorial state=up_for_retry task_id=templated
ti_id=01990429-a98e-7752-8c01-d72925f6d03f
2025-09-01 07:24:26 [warning ] Cannot start Task Instance in invalid state
previous_state=up_for_retry ti_id=01990429-a98e-7752-8c01-d72925f6d03f
[2025-09-01T07:24:26.661+0000] {_client.py:1025} INFO - HTTP Request: PATCH
http://in-process.invalid./task-instances/01990429-a98e-7752-8c01-d72925f6d03f/run
"HTTP/1.1 409 Conflict"
[2025-09-01T07:24:26.662+0000] {dag.py:1343} ERROR - [DAG TEST] Error
running task <TaskInstance: tutorial.templated
manual__2025-09-01T07:24:23.295650+00:00 [queued]>
Traceback (most recent call last):
File "/opt/airflow/task-sdk/src/airflow/sdk/definitions/dag.py", line
1305, in _run_task
taskrun_result = run_task_in_process(
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/supervisor.py",
line 1577, in run_task_in_process
return InProcessTestSupervisor.start(what=ti, task=task)
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/supervisor.py",
line 1484, in start
ti_context = supervisor.client.task_instances.start(supervisor.id,
supervisor.pid, start_date)
File "/opt/airflow/task-sdk/src/airflow/sdk/api/client.py", line 209, in
start
resp = self.client.patch(f"task-instances/{id}/run",
content=body.model_dump_json())
File "/usr/python/lib/python3.10/site-packages/httpx/_client.py", line
1218, in patch
return self.request(
File "/opt/airflow/task-sdk/src/airflow/sdk/execution_time/supervisor.py",
line 1440, in request
return super().request.__wrapped__(self, *args, **kwargs) # type:
ignore[attr-defined]
File "/opt/airflow/task-sdk/src/airflow/sdk/api/client.py", line 860, in
request
return super().request(*args, **kwargs)
File "/usr/python/lib/python3.10/site-packages/httpx/_client.py", line
825, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/python/lib/python3.10/site-packages/httpx/_client.py", line
914, in send
response = self._send_handling_auth(
File "/usr/python/lib/python3.10/site-packages/httpx/_client.py", line
942, in _send_handling_auth
response = self._send_handling_redirects(
File "/usr/python/lib/python3.10/site-packages/httpx/_client.py", line
999, in _send_handling_redirects
raise exc
File "/usr/python/lib/python3.10/site-packages/httpx/_client.py", line
982, in _send_handling_redirects
hook(response)
File "/opt/airflow/task-sdk/src/airflow/sdk/api/client.py", line 174, in
raise_on_4xx_5xx
return get_json_error(response) or response.raise_for_status()
File "/opt/airflow/task-sdk/src/airflow/sdk/api/client.py", line 170, in
get_json_error
raise err
airflow.sdk.api.client.ServerResponseError: Server returned error
[2025-09-01T07:24:26.670+0000] {dag.py:1349} INFO - [DAG TEST] end task
task_id=templated map_index=-1
[2025-09-01T07:24:26.672+0000] {dagrun.py:1171} INFO - Marking run <DagRun
tutorial @ 2025-09-01 07:24:10.616100+00:00:
manual__2025-09-01T07:24:23.295650+00:00, state:running, queued_at: None.
run_type: manual> failed
Dag run in failure state
Dag information:tutorial Run id: manual__2025-09-01T07:24:23.295650+00:00
Run type: manual
Failed with message: task_failure
[2025-09-01T07:24:26.672+0000] {dagrun.py:1266} INFO - DagRun Finished:
dag_id=tutorial, logical_date=2025-09-01 07:24:10.616100+00:00,
run_id=manual__2025-09-01T07:24:23.295650+00:00, run_start_date=2025-09-01
07:24:10.616100+00:00, run_end_date=2025-09-01 07:24:26.672732+00:00,
run_duration=16.056632, state=failed, run_type=manual,
data_interval_start=2025-09-01 07:24:10.616100+00:00,
data_interval_end=2025-09-01 07:24:10.616100+00:00,
DagRun failed
```
--
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]