Skip to content

Execution time limit not forced by compute worker #2586

Open

Description

@Didayolo

Issue

Long submissions (e.g. from MUnit Quest challenge) are not shut down by the compute worker after 20 minutes. The worker get stuck waiting for the scoring to actually finish, and send this log when trying to stop the container:

2026-09-29 13:26:15.941 | ERROR    | compute_worker:_run_container_engine_cmd:1124 - There was an error while starting the container and getting the logs: 

Fix

  • Enforce the limit: a threading.Timer force-removes the containers when time runs out. That ends the attach stream and unblocks client.wait, and start() then reports "Execution Time Limit exceeded" from a flag.

  • Stop blocking the loop: run the blocking docker calls (log iteration and wait) through asyncio.to_thread or run_in_executor. The event loop and the websocket keepalive then stay responsive.


I merge here a related issue reported by #2529:

It appears that when a submission reaches the computation budget limit, the error associated with the failure is not clear, and the logs of the submission cannot be shown. Here is an example with a specific submission (913840) :

Image

No scoring output:

Image

Then i inspected the logs from the codabench worker, and I saw that it reaches the computation time limit:

Image

For such expected case, the error should be clearer. Also, it would be ideal if log updates were robust to worker interrupts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Workers / Queues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions