kate-rodgers commented on issue #42136:
URL: https://github.com/apache/airflow/issues/42136#issuecomment-2477735027

   I was just able to get the following to work:
   ```
   task = BashOperator(
   task_id="bash_command",
   bash_command=bash_command,
   retries=2,
   retry_delay=timedelta(minutes=1),
   do_xcom_push=False,
   env={
   'PYTHONUNBUFFERED': '1',
   'PYTHONFAULTHANDLER': '1', # Helps debug crashes
   'FORCE_COLOR': '1' # Preserves color output in logs
   },
   cwd='/tmp',
   append_env=True
   )
   ```
   
   initially it failed with the same error, then succeeded on retry, I believe 
because the log stream was still in 'create' and not available for the first 
attempt.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to