From e5e08e151090bee20fbf2ecff05b76572f77e035 Mon Sep 17 00:00:00 2001 From: savish28 <32800267+savish28@users.noreply.github.com> Date: Sun, 8 Aug 2021 02:33:21 +0530 Subject: [PATCH] Worker: Limit pod logs for stdout for code upload challenges(#3564) * Limit pod logs for stdout * Update limit from 500 to 1000 Co-authored-by: Rishabh Jain --- scripts/workers/code_upload_submission_worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/workers/code_upload_submission_worker.py b/scripts/workers/code_upload_submission_worker.py index 196222bfb4..660738ffbd 100755 --- a/scripts/workers/code_upload_submission_worker.py +++ b/scripts/workers/code_upload_submission_worker.py @@ -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: