How to maintain order of execution of listeners in case of multiple listeners #31660
-
Hello, I have installed openlineage plugin which uses listener feature OpenLineage Integration Airflow . I also want to add my own listener. So in this case how do we control the order of execution. Say if I want openlineage listener code to execute first and then want my listener plugin to execute during the events, is it possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@mishrasangeeta87 I know this: https://pluggy.readthedocs.io/en/latest/#call-time-order So, I haven't tried it, but marking your
should work in this case. In general, we don't have ordering mechanism for plugins other than this in Airflow. |
Beta Was this translation helpful? Give feedback.
@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
withshould 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.