airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-6358) print details of failed task
Date Fri, 27 Dec 2019 11:48:00 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-6358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17004124#comment-17004124
] 

ASF GitHub Bot commented on AIRFLOW-6358:
-----------------------------------------

potiuk commented on pull request #6908: [AIRFLOW-6358] - log details of failed task
URL: https://github.com/apache/airflow/pull/6908
 
 
   
 
----------------------------------------------------------------
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


> print details of failed task
> ----------------------------
>
>                 Key: AIRFLOW-6358
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6358
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: logging
>    Affects Versions: 1.10.6
>            Reporter: t oo
>            Assignee: t oo
>            Priority: Trivial
>
> task instance.py
>  
> BEFORE
> self.state = State.FAILED
>  if task.retries:
>  self.log.info('All retries failed; marking task as FAILED')
>  else:
>  self.log.info('Marking task as FAILED.')
>  if task.email_on_failure and task.email:
>  self.email_alert(error)
>  
> AFTER
> self.state = State.FAILED
>  if task.retries:
>  self.log.info('All retries failed; marking task as FAILED. dag_id=%s, task_id=%s, execution_date=%s,
start_date=%s, end_date=%s', self.dag_id, self.task_id, self.execution_date.strftime('%Y%m%dT%H%M%S'),
self.start_date.strftime('%Y%m%dT%H%M%S'), self.end_date.strftime('%Y%m%dT%H%M%S'))
>  else:
>  self.log.info('Marking task as FAILED. dag_id=%s, task_id=%s, execution_date=%s, start_date=%s,
end_date=%s', self.dag_id, self.task_id, self.execution_date.strftime('%Y%m%dT%H%M%S'), self.start_date.strftime('%Y%m%dT%H%M%S'),
self.end_date.strftime('%Y%m%dT%H%M%S'))
>  if task.email_on_failure and task.email:
>  self.email_alert(error)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message