Skip to content

Trigger rule for "always" #10275

@darwinyip

Description

@darwinyip

Description

Trigger rule for always.

Use case / motivation

This comes in handy when there is a need to clean up resources at the end of the DAG run no matter whether it fails or succeeds.

For example:

allocate >> a >> b >> c >> d >> cleanup

The biggest issue is that if an error occurs before d, cleanup will never get executed.

Example use case is using BigQuery's Reservation API. We want to reserve slots at the beginning of the run and deallocate at the end. Not deallocating would mean a rampant bill at the end of the month.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions