You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exceptions become a mess in logs using a Python 3.11 docker operator #33692
Originally posted by notatallshaw-gts August 2, 2023
We drive a lot of our scripts via the DockerOperator as we define our Python script environment separately from our Airflow environment.
But they don't always stay on one line in the Airflow logs and can end up looking a bit of a mess, e.g. here is a snippet of part of an exception in one of our logs:
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^
^^^^^^
^^^^^^^
^^^^^^^
^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^
^^^^^^^^^
^^^^^^
Has anyone else suffered this and fixed it? Or would someone be able to give some hints on maybe how to solve this.
This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author.
FWIW, this was not fixed for me, I just upgraded to Airflow 2.11.0 and see this issue without my internal patch, I have made a follow up issue and will try and prioritize submitting a PR: #58911
Activity
github-actions commentedon Aug 31, 2024
This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author.
notatallshaw-gts commentedon Sep 3, 2024
Still an issue, I just have yet not managed to prioritize raising a PR 🙁
potiuk commentedon Sep 3, 2024
Maybe someone can step up :) ?
Fix logs with leading spaces in the Docker operator (apache#33692) (a…
Fix logs with leading spaces in the Docker operator (apache#33692) (a…
notatallshaw-gts commentedon Dec 1, 2025
FWIW, this was not fixed for me, I just upgraded to Airflow 2.11.0 and see this issue without my internal patch, I have made a follow up issue and will try and prioritize submitting a PR: #58911