Pebble32 opened a new pull request, #77392:
URL: https://github.com/apache/airflow/pull/77392
A TS task with a misspelled `triggerRule` or `weightRule` was packed and
saved without an error, but Airflow cannot use it: an unknown trigger rule
leaves the task never running, and the run fails with only "Task deadlock (no
runnable tasks)", while an unknown weight rule fails every run of the Dag
("Unknown priority strategy" on a manual trigger, and the scheduler logs
"Failed to deserialize DAG" and never creates a scheduled run). The task spec
now rejects both when the task is defined, as Python's `BaseOperator` and the
Go SDK already do. A `weightRule` containing a dot is still accepted as the
import path of a plugin's priority weight strategy, the types stay `string` so
no existing code breaks, and a test keeps the accepted values in sync with
`trigger_rule.py` and `weight_rule.py`. The tests use `"upwards"` as the
misspelled weight rule rather than a typo such as `"upstrem"`, because
codespell rejects the typo.
--
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]