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/06/05 09:44:30 UTC

[GitHub] [airflow] ashb commented on pull request #9143: Add note about using dag_run.conf in BashOperator

ashb commented on pull request #9143:
URL: https://github.com/apache/airflow/pull/9143#issuecomment-639374043


   Hmmmm, I wonder what is going on between sphinx and pygmentize:
   
   ```
   airflow ❯ pygmentize -l python -F raiseonerror < test-lex.py
       bash_task = BashOperator(
           task_id="bash_task",
           bash_command='echo "here is the message: \'$message\'"',
           env={'message': '{{ dag_run.conf["message"] if dag_run else "" }}'},
   ```
   
   works fine and doesn't error.


----------------------------------------------------------------
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