Skip to content

Add sorting logic by created_date for fetching triggers#31151

Merged
uranusjr merged 5 commits into
apache:mainfrom
utkarsharma2:TriggererFIFO
May 9, 2023
Merged

Add sorting logic by created_date for fetching triggers#31151
uranusjr merged 5 commits into
apache:mainfrom
utkarsharma2:TriggererFIFO

Conversation

@utkarsharma2

Copy link
Copy Markdown
Contributor

When fetching triggers we should ensure the old one gets picked up first, following FIFO. In this PR we have added a sorting logic by Trigger's class creation_date.

@utkarsharma2
utkarsharma2 requested a review from dstandish as a code owner May 9, 2023 13:15
@utkarsharma2
utkarsharma2 marked this pull request as draft May 9, 2023 13:15
@utkarsharma2
utkarsharma2 marked this pull request as ready for review May 9, 2023 13:31
Comment thread airflow/models/trigger.py Outdated
Comment thread airflow/models/trigger.py Outdated
Comment thread tests/models/test_trigger.py Outdated
@utkarsharma2
utkarsharma2 requested a review from jedcunningham May 9, 2023 15:03
@uranusjr
uranusjr merged commit 2b26a76 into apache:main May 9, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.0 milestone Jul 6, 2023
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:improvement Changelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants