limit size of error log saved as a Task Error (#170)

This commit is contained in:
bmc-msft 2020-10-19 12:52:19 -04:00 committed by GitHub
parent 75f29b9f2e
commit 9bf3d55b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,8 +168,8 @@ def on_worker_event(machine_id: UUID, event: WorkerEvent) -> None:
code=ErrorCode.TASK_FAILED,
errors=[
"task failed. exit_status:%s" % exit_status,
event.done.stdout,
event.done.stderr,
event.done.stdout[-4096:],
event.done.stderr[-4096:],
],
)
)