Closed
Labels
Description
TODOs:
- Show logs when compute worker crashes because of invalid docker image
- show logs when compute worker crashes because of time limit
Reproduce error:
- execution time limit exceeds
- wrong docker image (does not exist)
When the compute worker crashes, the submission is stuck in Running state and no logs are forwarded to the UI.
When the worker hit the ExecutionTimeLimitExceeded error (see below), the program simply stops and no logs are returned to the platform for the users.
To reproduce, edit a benchmark to put a very low execution time limit and make a submission.
Traceback (most recent call last):
File "/compute_worker.py", line 687, in start
loop.run_until_complete(gathered_tasks)
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 603, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
self._run_once()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1823, in _run_once
event_list = self._selector.select(timeout)
File "/usr/local/lib/python3.8/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
File "/compute_worker.py", line 158, in alarm_handler
raise ExecutionTimeLimitExceeded
compute_worker.ExecutionTimeLimitExceeded
Activity
[-]No error logs for ExecutionTimeLimitExceeded[/-][+]No error logs when the compute worker crashes[/+]Didayolo commentedon Jul 27, 2023
A typical example of this: if you select a Docker image that does not exist, the submission will fail with no logs.
ihsaan-ullah commentedon Sep 3, 2023
Do you know the reason for this error:
This is the exact link:
http://docker.for.mac.localhost:9000/private/submission_details/2023-09-03-1693744274/393db4c35cfe/prediction_ingestion_stderr.txt?AWSAccessKeyId=testkey&Signature=G8b5Oom2mb%2FFJMfF9sXstMPyCWc%3D&content-type=application%2Fzip&Expires=1693830674
I can see the file in minio

Didayolo commentedon Sep 3, 2023
I don't know. It is linked to this issue?
ihsaan-ullah commentedon Sep 3, 2023
Yes, I am trying to solve the issue but when I want to write to this file, I get this error