The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix/time-sensor-dag-version-69543 has failed.
Run started by GitHub user Vamsi-klu (triggered by Vamsi-klu).

Head commit for run:
0d07ffbf641fd2b009f7b4d06f8f82d8002a8496 / Vamsi-klu <[email protected]>
Fix TimeSensor dag_version churn via TimeOfDayTrigger

TimeSensor(start_from_trigger=True) had two defects:

1. __init__ mutated the class-level StartTriggerArgs.trigger_kwargs, so
   every TimeSensor shared the last-constructed sensor's moment.
2. That moment was an absolute datetime from datetime.now() at parse
   time, so each Dag-processor parse produced a different serialized
   blob and a new DagVersion.

Preserve start_from_trigger by introducing TimeOfDayTrigger, which
stores only parse-stable target_time + timezone and resolves the
concrete moment when the trigger starts. TimeSensor builds a
per-instance StartTriggerArgs (never mutates the class attribute).

No major version bump: the public API is preserved.

Fixes: #69543

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

With regards,
GitHub Actions via GitBox


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

Reply via email to