The GitHub Actions job "Tests (AMD)" on 
airflow.git/suggest-partition-key-on-trigger has failed.
Run started by GitHub user Lee-W (triggered by Lee-W).

Head commit for run:
589276ac27a9ae86e78f84bac44ecca29a0f2969 / Wei Lee <[email protected]>
Pre-populate a suggested partition key when manually triggering 
cron-partitioned Dags

Manually triggering a Dag whose timetable is CronPartitionTimetable leaves
the Partition Key field blank. If the user submits without typing one, the
Dag run is created unpartitioned and any downstream asset-partition-aware
Dag can never be satisfied by it.

Add a new Timetable.suggest_partition_key(now) hook, overridden by
CronPartitionTimetable to suggest the most recently elapsed partition tick.
Thread the suggestion through a new suggested_partition_key field on
DAGResponse to pre-populate the trigger form's Partition Key field. The
field stays editable and still submits null if the user clears it.

The Dags list view builds its payload by reading every DAGResponse field off
a bare DagModel, so a field that only the single-Dag endpoints supply has to
be declared as such or that endpoint fails with AttributeError. The trigger
form applies the suggestion again whenever a newer one arrives, because a
response served from cache can name a partition that has since elapsed.

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

With regards,
GitHub Actions via GitBox


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

Reply via email to