Skip to content

Commit 1fa7373

Browse files
author
Obada Haddad
committed
fix some syntax
1 parent 0b76cba commit 1fa7373

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

compute_worker/compute_worker.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,12 @@ def run_wrapper(run_args):
376376
msg = str(e).strip()
377377
if msg:
378378
if Settings.SILENT_COMPUTE_WORKER:
379-
msg = f"Submission failed: {msg}. Contact the Organizer for more details."
379+
msg = f"Submission failed: {msg}. Contact the Organizer(s) for more details."
380380
else:
381381
msg = f"Submission failed: {msg}. See logs for more details."
382382
else:
383383
if Settings.SILENT_COMPUTE_WORKER:
384-
msg = "Submission failed. Contact the Organizer for more details."
384+
msg = "Submission failed. Contact the Organizer(s) for more details."
385385
else:
386386
msg = "Submission failed. See logs for more details."
387387
run._update_status(SubmissionStatus.FAILED, extra_information=msg)
@@ -795,7 +795,7 @@ def _get_container_image(self, image_name):
795795
asyncio.run(self._send_data_through_socket(str(pull_error)))
796796
if Settings.SILENT_COMPUTE_WORKER:
797797
raise DockerImagePullException(
798-
f"Pull for {image_name} failed! Contact the Organizer for more details."
798+
f"Pull for {image_name} failed! Contact the Organizer(s) for more details."
799799
)
800800
else:
801801
raise DockerImagePullException(
@@ -939,7 +939,8 @@ def _create_container(
939939
"SYS_CHROOT",
940940
]
941941

942-
# Configure whether or not we use the GPU. Also setting auto_remove to False because
942+
# Configure whether or not we use the GPU. Also setting auto_remove to False because removing too fast
943+
# can bug out the worker (can't get the logs fast enough)
943944
if Settings.CONTAINER_ENGINE_EXECUTABLE == Settings.DOCKER:
944945
security_options = ["no-new-privileges"]
945946
else:

0 commit comments

Comments
 (0)