Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
limit size of error log saved as a Task Error (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc-msft authored Oct 19, 2020
1 parent 75f29b9 commit 9bf3d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api-service/__app__/agent_events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:],
],
)
)
Expand Down

0 comments on commit 9bf3d55

Please sign in to comment.