The GitHub Actions job "Tests" on airflow.git/2512/fix_priority_weight has 
failed.
Run started by GitHub user Dev-iL (triggered by Dev-iL).

Head commit for run:
f9a943444fc0ffae70a97e507253d922ac84ed11 / Dev-iL 
<[email protected]>
Fix priority_weight NOT NULL constraint in provider tests

After commit 60b4ed48e1 ("Remove PriorityWeightStrategy reference in
SDK"), SDK operators store weight_rule as a string instead of a
PriorityWeightStrategy object. When TaskInstance.refresh_from_task()
calls task.weight_rule.get_weight(), it fails silently due to
contextlib.suppress(Exception), leaving priority_weight unset.

Fix by wrapping SDK operators with create_scheduler_operator() before
passing to TaskInstance, matching the pattern used in core tests.

Report URL: https://github.com/apache/airflow/actions/runs/20535570566

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to