You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ColtenOuO (via GitHub)" <gi...@apache.org> on 2026/08/03 13:23:13 UTC
[PR] Document the 409 from XCom create and drop a duplicated condition [airflow]
ColtenOuO opened a new pull request, #70992:
URL: https://github.com/apache/airflow/pull/70992
## Sumarry
Two small fixes to `POST /api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries`.
**The 409 was undocumented.** The handler returns `409 Conflict` when an XCom with
that key already exists for the task instance, but `create_openapi_http_exception_doc`
only declared `400` and `404`. Clients generated from the spec therefore had no
model for a status the endpoint really does return. Same class of fix as #67570
and #67571.
**A duplicated condition.** The Dag-run check was nested inside an identical copy of
itself:
```python
if not dag_run:
if not dag_run:
raise HTTPException(status.HTTP_404_NOT_FOUND, ...)
```
Dead code, no behaviour change.
`v2-rest-api-generated.yaml` and `ui/openapi-gen/` are regenerated from the changed
`responses=` declaration.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document the 409 from XCom create and drop a duplicated condition [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #70992:
URL: https://github.com/apache/airflow/pull/70992#issuecomment-5184931131
### Backport successfully created: v3-3-test
Note: As of [Merging PRs targeted for Airflow 3.X](https://github.com/apache/airflow/blob/main/dev/README_AIRFLOW3_DEV.md#merging-prs-targeted-for-airflow-3x)
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.
In matter of doubt please ask in [#release-management](https://apache-airflow.slack.com/archives/C03G9H97MM2) Slack channel.
<table>
<tr>
<th>Status</th>
<th>Branch</th>
<th>Result</th>
</tr>
<tr>
<td>✅</td>
<td>v3-3-test</td>
<td><a href="https://github.com/apache/airflow/pull/71128"><img src="https://img.shields.io/badge/PR-71128-blue" alt="PR Link"></a></td>
</tr>
</table>
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Document the 409 from XCom create and drop a duplicated condition [airflow]
Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi merged PR #70992:
URL: https://github.com/apache/airflow/pull/70992
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org