Skip to content
Discussion options

You must be logged in to vote

This is expected with the current behavior: asset events are only registered when the producing task finishes in success. In the execution API, register_asset_changes_in_db is only called for the success payload (task_instances.py), so a skipped task (worker-side or scheduler cascade) never emits an event.

You can get the behavior you want today without changing Airflow by moving the outlets off the task that may skip and onto a small "publish" task at the end of the producer DAG with trigger_rule="none_failed":

from airflow.sdk import Asset, dag, task
from airflow.sdk.exceptions import AirflowSkipException
from airflow.providers.standard.operators.empty import EmptyOperator

source_b = A…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nord94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants