Skip to content

Unable to mark_tasks.set_state to SKIPPED #25463

Description

Apache Airflow version

2.3.3 (latest released)

What happened

Crash while trying to call set_state from module common.mark_tasks with state SKIPPED.
TaskInstanceState can be set to SKIPPED but while trying to set the same state to downstream dags the app crashes at DagRunState does not accept SKIPPED state.

What you think should happen instead

Either:

  • allow DagRunState to be SKIPPED (more difficult)
  • while skipping tasks set downstream dags to state FAILED (easy)

How to reproduce

call common.mark_tasks.set_state with state SKIPPED

Operating System

macOs 12.5

Versions of Apache Airflow Providers

2.3.3

Deployment

Virtualenv installation

Deployment details

The error happens even when running airflow locally.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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