KevinYang21 commented on a change in pull request #7639: [AIRFLOW-7000] Allow
passing in env var JSON dict in task_test
URL: https://github.com/apache/airflow/pull/7639#discussion_r390027008
##########
File path: airflow/cli/commands/task_command.py
##########
@@ -320,6 +320,12 @@ def task_test(args, dag=None):
if not already_has_stream_handler:
logging.getLogger('airflow.task').propagate = True
+ env_vars = {'AIRFLOW_TEST_MODE'}
Review comment:
This is more to share `AIRFLOW_TEST_MODE` across all executions and provide
a convinient default env var for people too lazy to specify the cli param. It's
the most common one that we use( to differ dev env from prod env). Do you
think it would be useful?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services