Repository navigation
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
jason810496
left a comment
There was a problem hiding this comment.
Thanks for the PR, the overall direction is correct but there're some places to refine.
c2440f9 to
3d858bf
Compare
|
Thanks for the detailed review and helpful suggestions! I've refined the defaults handling and added regression coverage for configured and explicitly set values. Could a maintainer approve the pending CI runs so I can verify the changes? |
|
This pull request changes CI files. It changes files that CI uses:
They do not decide which CI jobs run or on which runners, so its workflow runs are not held for this. A maintainer reviewing the pull request will check the CI change together with the rest of it. This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated. |
jason810496
left a comment
There was a problem hiding this comment.
Thanks for picking this up! I checked each point below on this PR rebased onto main, which includes #76359.
A rule that may help: fill a default where it is first read. The scheduler and API server read most fields before any worker runs, so the Dag processor fills them. Only the worker reads execution_timeout, so it stays unset and the worker fills it.
| Field | Config | Read by | Filled by |
|---|---|---|---|
retries |
[core] default_task_retries |
Scheduler, sets ti.max_tries |
Dag processor |
retry_delay |
[core] default_task_retry_delay |
Scheduler, next_retry_datetime() |
Dag processor |
queue |
[operators] default_queue |
Scheduler sets ti.queue, executor routes on it |
Dag processor |
weight_rule |
[core] default_task_weight_rule |
Scheduler, sets ti.priority_weight |
Dag processor |
owner |
[operators] default_owner |
Dag processor (DagModel.owners), UI |
Dag processor |
email_on_failure, email_on_retry |
[email] default_email_on_* |
Scheduler and Dag processor callbacks, only when email is set |
Dag processor (no effect for SDK tasks yet) |
max_active_tasks, max_active_runs, max_consecutive_failed_dag_runs, catchup, disable_bundle_versioning |
See fill_config_defaults |
Scheduler, API server | Dag processor (already on main) |
execution_timeout |
[core] default_task_execution_timeout |
Supervisor on the worker (#76359) | Worker |
| deferrable default | [operators] default_deferrable |
SDK runtime | Worker (coordinator env, already on main) |
Python Dags split the same way. The processor's config fixes the scheduler fields, and the worker's re-parse sets the timeout.
- Do not fill execution_timeout from the Dag processor's config; the worker applies [core] default_task_execution_timeout since apache#76359. - Skip writing an empty client_defaults table, and leave a malformed one to validate_serialized_dag. - Make Go TaskSpec Retries and ExecutionTimeout pointers so an explicit 0 is written. - Parametrize the task default tests over every config-backed field. - Stop generating Field.defaultJson in the Java SDK; nothing reads it.
8793b56 to
eb1320f
Compare
|
Rebased onto main (with #76359) and addressed all six points in eb1320f:
The Go, TS and Java suites and |
Preserve explicitly configured task fields that match schema defaults in the language SDK serializers.
Populate missing task defaults from Airflow configuration without overriding values already supplied by the SDK. Add regression tests and update serialization conformance checks and the SDK parsing ADR.
Closes: #74094
Was generative AI tooling used to co-author this PR?