You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/04 18:58:41 UTC

[GitHub] [airflow] JeffryMAC commented on issue #11234: task marked as failed when sys.exit(0)

JeffryMAC commented on issue #11234:
URL: https://github.com/apache/airflow/issues/11234#issuecomment-703300022


   If you change
   ```
   def task():
       print('doing stuff inside task')
       sys.exit(0)
   ```
   
   to:
   
   ```
   def task():
       print('doing stuff inside task')
       return
   ```
   
   wouldn't that solve the 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.

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