We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking "Accept", you agree to our use of cookies.
Learn more.

User GuideDurable Events

Durable Events

Durable events are a feature of durable tasks which allow tasks to wait for an event to occur before continuing. This is useful in cases where a task needs to wait for a long time for an external action. Durable events are useful, because even if your task is interrupted and requeued while waiting for an event, the event will still be processed. When the task is resumed, it will read the event from the durable event log and continue processing.

Declaring durable events

Durable events are declared using the context method WaitFor (or utility method WaitForEvent) on the DurableContext object.

Durable event filters

Durable events can be filtered using CEL expressions. For example, to only receive user:update events for a specific user, you can use the following filter: