jason810496 commented on code in PR #75932:
URL: https://github.com/apache/airflow/pull/75932#discussion_r4412040375
##########
airflow-core/src/airflow/api_fastapi/execution_api/AGENTS.md:
##########
@@ -32,6 +32,7 @@ uv run --active --group codegen --project
apache-airflow-task-sdk --directory ta
- Don't use keyword arguments with `endpoint()` — use positional:
`endpoint("/path", ["GET"])`.
- Don't add changes to already-released version files.
- Don't forget response converters for new fields in nested objects.
+- Don't load the serialized Dag on a per-task hot path such as `ti_run`:
introduce a dedicated column on `task_instance` and read there instead.
Review Comment:
It's case by case. Loading the serialized Dag is fine when only a small
share of TIs pays for it.
For example, `ti.is_stub` gates the load so only non-Python tasks hit it. A
new task_instance column means denormalizing and might bloat the table, so it's
only worth it when every task needs the value IMO.
--
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]