Skip to content

Commit

Permalink
[AIRFLOW-6099] Add host name to task runner log (apache#6688)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbaszek authored and potiuk committed Nov 29, 2019
1 parent 15e30dd commit f2f8d01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/task/task_runner/base_task_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from airflow.configuration import conf
from airflow.utils.configuration import tmp_configuration_copy
from airflow.utils.log.logging_mixin import LoggingMixin
from airflow.utils.net import get_hostname

PYTHONPATH_VAR = 'PYTHONPATH'

Expand Down Expand Up @@ -121,6 +122,7 @@ def run_command(self, run_with=None):
run_with = run_with or []
full_cmd = run_with + self._command

self.log.info("Running on host: %s", get_hostname())
self.log.info('Running: %s', full_cmd)
proc = subprocess.Popen(
full_cmd,
Expand Down

0 comments on commit f2f8d01

Please sign in to comment.