Skip to content

Commit

Permalink
Fix airflow2.x not show log in helpdesk (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
dispensable authored Nov 19, 2021
1 parent e4d1eaf commit f97c79c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpdesk/libs/airflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_task_result(self, dag_id, execution_date, task_id, try_number=None):
all_task_result[task_id] = self._check_resp(
task_result, AirflowClientTaskResultException, 'Get task result {} error: {{}}'.format(task_id))
if try_number:
all_task_result[task_id]['message'] = [all_task_result[task_id]['message']]
all_task_result[task_id]['message'] = [all_task_result[task_id]['message'][0][1]]
all_task_result[task_id]['pretty_log'] = [all_task_result[task_id]['pretty_log']]
except AirflowClientTaskResultException as e:
logger.error(f'Get {task_id} @ {execution_date} of {dag_id} error: {str(e)}')
Expand Down

0 comments on commit f97c79c

Please sign in to comment.