Skip to content

Propagate server execution failures to ZMQ completion waiters #140

Closed

Description

@trissim

Problem

When a fork worker lane raises during an ordinary ZMQ execution, the server logs the terminal exception but the client remains in wait_for_completion() polling indefinitely. This prevented run-well-throughput from recording an error row or continuing/returning; it had to be interrupted manually.

Observed on commit fc1f946329cc74ffcd1b6a73d39591c259dea030 during the Official30 ExampleFlyURL 12w_3c mode. The server log ended with:

RuntimeError: Fork worker lane worker_0 generated an exception: Failed to delete .../CroppedFlyImage0002RGB.tiff

More than three minutes later, the benchmark was still blocked here:

benchmark/openhcs_measured_run.py -> run_compiled_pipeline()
openhcs/runtime/zmq_execution_client.py -> client.wait_for_completion(execution_id)
zmqruntime/execution/wait_policy.py -> self._poll_status(execution_id)
zmqruntime/execution/client.py -> poller.poll(...)

The benchmark wrapper already catches ordinary exceptions and converts them to WellThroughputResult.failed, but it cannot do so because the execution client never receives or infers a terminal server failure.

Acceptance criteria

  • A server-side execution exception produces an observable terminal failed state or error response for the matching execution ID.
  • wait_for_completion() returns/raises within a bounded interval after the server execution fails.
  • run-well-throughput records a durable failed row with the server error rather than hanging.
  • Add an end-to-end regression that injects a worker exception and proves both server failure propagation and benchmark termination.

Activity

  1. added
    bug
    on Sep 29, 2026
  2. trissim commented on Oct 6, 2026

    @trissim
    CollaboratorAuthor

    Crosslink #1005 / draft #1007: a returned ERROR axis is currently advertised COMPLETE because normal execute_task return implies transport success. This is distinct from #140 fork-worker exception/waiter termination. #1007 qualifies the original axis collection after partial exports, using the existing lifecycle failure publication; no ZMQRuntime lifecycle changes or original scientific replay. #140 fork-lane acceptance is not claimed by this fix.

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

    buginvestigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions