Task exited with return code 1 with no errors #54947
Unanswered
komalrajputtrootech
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Add some timeout after django.setup() ... https://github.com/parisk/airflow-django/blob/master/airflow_django/operators.py |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Issue
Airflow Version : 2.10.3
I’m running a task in an Airflow DAG that calls a Django function. To initialize Django, I’m using
django.setup()
.The task consistently fails with exit code 1, but no traceback or error logs are shown.
What I’ve Observed
django.setup()
are printed correctly.django.setup()
never appear.1
but without any error or stack trace in Airflow logs.Here’s the log snippet:
What I Tried
PYTHONFAULTHANDLER
→ still no traceback.django.setup()
in try/except withtraceback.print_exc()
→ nothing is printed.DEBUG
→ no additional output related to the crash.Ask
Has anyone encountered a situation where
django.setup()
fails silently inside an MWAA/Airflow task?Beta Was this translation helpful? Give feedback.
All reactions