Skip to content

Commit

Permalink
Worker: Limit pod logs for stdout for code upload challenges(Cloud-CV…
Browse files Browse the repository at this point in the history
…#3564)

* Limit pod logs for stdout

* Update limit from 500 to 1000

Co-authored-by: Rishabh Jain <[email protected]>
  • Loading branch information
savish28 and RishabhJain2018 authored Aug 7, 2021
1 parent 59c1101 commit e5e08e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/workers/code_upload_submission_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ def update_failed_jobs_and_send_logs(
pod_log = pod_log_response.data.decode(
"utf-8"
)
pod_log = pod_log[-1000:]
clean_submission = True
submission_error = pod_log
except client.rest.ApiException as e:
Expand Down

0 comments on commit e5e08e1

Please sign in to comment.