You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "collinmcnulty (via GitHub)" <gi...@apache.org> on 2025/06/02 18:02:32 UTC

[I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

collinmcnulty opened a new issue, #51320:
URL: https://github.com/apache/airflow/issues/51320

   ### Apache Airflow version
   
   3.0.1
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   A DAG is being marked failed despite all tasks that should be skipped. This only happens when trigger_rule is all_done
   
   ### What you think should happen instead?
   
   Mapped task should be skipped, not upstream failed.
   
   ### How to reproduce
   
   This DAG has all tasks skip in Airflow 2, so the DAG state is success. In Airflow 3, it has one task upstream_failed and therefore the DAG as a whole is marked failed.
   
   ```
   from airflow.exceptions import AirflowSkipException
   from airflow.decorators import dag, task
   
   
   @dag(
       start_date=None,
       schedule=None,
   )
   def upstream_skipper():
       @task()
       def skip(**context) -> int:
           raise AirflowSkipException()
   
       @task(trigger_rule="all_done")
       def consume_skip_all_done(value) -> None:
           """Fails as upstream skipped"""
           print(value)
   
       @task()
       def consume_skip_all_success(value) -> None:
           """Skipped"""
           print(value)
   
       consume_skip_all_success.expand(value=skip())
       consume_skip_all_done.expand(value=skip())
   
   
   upstream_skipper()
   ``
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

Posted by "phanikumv (via GitHub)" <gi...@apache.org>.
phanikumv commented on issue #51320:
URL: https://github.com/apache/airflow/issues/51320#issuecomment-3441334031

   Closing as per above  comment, please reopen in case of issues.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

Posted by "phanikumv (via GitHub)" <gi...@apache.org>.
phanikumv commented on issue #51320:
URL: https://github.com/apache/airflow/issues/51320#issuecomment-3436416116

   @atul-astronomer @vatsrahul1001 can we do one final round of testing to evaluate whether the issue still exists ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

Posted by "aayushbisen (via GitHub)" <gi...@apache.org>.
aayushbisen commented on issue #51320:
URL: https://github.com/apache/airflow/issues/51320#issuecomment-3117354061

   Hey I was able to reproduce the issue in local env and understand the expected behaviour mentioned in the #53667 .
    
   I want to help with the issue can I start looking at potential solutions or workarounds for this issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

Posted by "atul-astronomer (via GitHub)" <gi...@apache.org>.
atul-astronomer commented on issue #51320:
URL: https://github.com/apache/airflow/issues/51320#issuecomment-3441320449

   Tested with 3.1.1rc2, works fine.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

Posted by "collinmcnulty (via GitHub)" <gi...@apache.org>.
collinmcnulty commented on issue #51320:
URL: https://github.com/apache/airflow/issues/51320#issuecomment-2932307983

   This also applies to none_failed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

Posted by "gopidesupavan (via GitHub)" <gi...@apache.org>.
gopidesupavan commented on issue #51320:
URL: https://github.com/apache/airflow/issues/51320#issuecomment-3279677816

   <img width="1851" height="741" alt="Image" src="https://github.com/user-attachments/assets/51aff9f8-4e63-4bd6-ac91-a688d886fd6f" />
   
   @collinmcnulty  looks like it resolved are you happy to close this? can you please check. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] all_done trigger rule goes upstream_failed when mapped inputs are all skipped [airflow]

Posted by "phanikumv (via GitHub)" <gi...@apache.org>.
phanikumv closed issue #51320: all_done trigger rule goes upstream_failed when mapped inputs are all skipped
URL: https://github.com/apache/airflow/issues/51320


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org