tests.system.microsoft.azure.example_event_schedule_asb¶
Example Airflow DAG that demonstrates using Azure Service Bus with MessageQueueTrigger and Asset Watchers for event-driven workflows.
This example shows how to create a DAG that triggers when messages arrive in an Azure Service Bus queue using Asset Watchers.
Prerequisites¶
Before running this example, ensure you have:
An Azure Service Bus namespace
A queue created in the namespace (e.g.,
my-queue)An Airflow connection configured with ID
azure_service_bus_default
How to test¶
Ensure the Azure Service Bus queue exists (see Prerequisites above)
Send a message to the queue to trigger the DAG
The DAG will be triggered automatically when the message arrives