tests.system.openlineage.triggers¶
Triggers of the system test Dags, in a module of their own so the triggerer can import them.
Classes¶
Fail in the triggerer, which makes the deferred task resume only to fail. |
Module Contents¶
- class tests.system.openlineage.triggers.FailingTrigger(**kwargs)[source]¶
Bases:
airflow.triggers.base.BaseTriggerFail in the triggerer, which makes the deferred task resume only to fail.
- async run()[source]¶
Run the trigger in an asynchronous context.
The trigger should yield an Event whenever it wants to fire off an event, and return None if it is finished. Single-event triggers should thus yield and then immediately return.
If it yields, it is likely that it will be resumed very quickly, but it may not be (e.g. if the workload is being moved to another triggerer process, or a multi-event trigger was being used for a single-event task defer).
In either case, Trigger classes should assume they will be persisted, and then rely on cleanup() being called when they are no longer needed.