Skip to content

How to maintain order of execution of listeners in case of multiple listeners #31660

Discussion options

You must be logged in to vote

@mishrasangeeta87 I know this: https://pluggy.readthedocs.io/en/latest/#call-time-order

And pytest-dev/pluggy#250

So, I haven't tried it, but marking your hookimpl with

    @hookimpl(trylast=True)

should work in this case.

In general, we don't have ordering mechanism for plugins other than this in Airflow.
If we needed it, it could be done - by controlling order in which plugins are registered, instead of doing it eagerly.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mishrasangeeta87
Comment options

Answer selected by mishrasangeeta87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants