[
https://issues.apache.org/jira/browse/AIRFLOW-6099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jarek Potiuk resolved AIRFLOW-6099.
-----------------------------------
Fix Version/s: 1.10.7
Resolution: Fixed
> Add host name to task runner log
> --------------------------------
>
> Key: AIRFLOW-6099
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6099
> Project: Apache Airflow
> Issue Type: Improvement
> Components: logging
> Affects Versions: 1.10.7
> Reporter: Tomasz Urbaszek
> Priority: Minor
> Fix For: 1.10.7
>
>
> It would be great to be able to look at log at web UI and see on what host
> the task was running. This is very helpful especially with celery executor
> using multiple workers.
>
> [2019-11-29 10:10:41,214] \{taskinstance.py:846} INFO - Executing
> <Task(PubSubTopicCreateOperator): create_topic> on 2019-11-28T00:00:00+00:00
> {color:#FF0000}[2019-11-29 10:10:41,215] \{base_task_runner.py:125} INFO -
> Running on host: 78389658e938{color}
> [2019-11-29 10:10:41,216] \{base_task_runner.py:126} INFO - Running:
> ['airflow', 'tasks', 'run', 'example_gcp_pubsub', 'create_topic',
> '2019-11-28T00:00:00+00:00', '--job_id', '2', '--pool', 'default_pool',
> '--raw', '-sd',
> '/opt/airflow/airflow/providers/google/cloud/example_dags/example_pubsub.py',
> '--cfg_path', '/tmp/tmpwrwdlsdv']
--
This message was sent by Atlassian Jira
(v8.3.4#803005)