Skip to content

Commit

Permalink
bugfix: 修复子任务状态更新失败的问题(fixed #130)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 committed Jan 20, 2022
1 parent a8e1891 commit d0b14b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/gsekit/pipeline_plugins/components/collections/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def schedule(self, data, parent_data, callback_data=None):
for job_task in job_tasks.filter(status=job_models.JobStatus.RUNNING):
error = PipelineTimeoutException()
job_task.set_status(
job_models.JobStatus.FAILED, extra_data={"failed_reason": error.message, "err_code": error.code}
job_models.JobStatus.FAILED,
extra_data={"failed_reason": str(error.message), "err_code": error.code},
)
self.finish_schedule()
return False
Expand Down

0 comments on commit d0b14b9

Please sign in to comment.