mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 04:38:09 +00:00
only record the first failure if a task has multiple failures (#797)
This commit is contained in:
@ -204,6 +204,12 @@ class Task(BASE_TASK, ORMMixin):
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self.error is not None:
|
||||||
|
logging.debug(
|
||||||
|
"ignoring additional task error %s:%s", self.job_id, self.task_id
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
logging.error("task failed %s:%s - %s", self.job_id, self.task_id, error)
|
logging.error("task failed %s:%s - %s", self.job_id, self.task_id, error)
|
||||||
|
|
||||||
self.error = error
|
self.error = error
|
||||||
|
Reference in New Issue
Block a user