Skip to content

Local world re-enqueues parked interactive sessions into an unhandled queue on restart #715

Description

@Volpestyle

Eve version

0.22.4

Problem

Restarting a built eve start application with a normal interactive session parked at session.waiting logs:

[world-local] Re-enqueued 1 active run(s) on startup
[world-local] Queue message failed (attempt 1, HTTP 400) {
  queueName: '__wkf_workflow_workflow//eve//workflowEntry',
  handlerError: '{"error":"Unhandled queue"}'
}

The stale delivery continues retrying even though the client can explicitly continue the same session with its sessionId and continuationToken. In an isolated black-box test, turn 2 succeeded on the same session, replay was exact-once, and no user-visible failure occurred; the startup requeue remained as repeated retry noise/work.

Reproduction

  1. eve build, then eve start with a persistent WORKFLOW_LOCAL_DATA_DIR.
  2. Create an interactive session, complete turn 1, and wait for session.waiting.
  3. Stop the server cleanly.
  4. Restart eve start with the same built output and data directory.
  5. Observe the local world re-enqueue the parked root run to a queue namespace the restarted handler rejects with HTTP 400 Unhandled queue.
  6. Explicitly continue through the public session route; continuation still succeeds while the stale delivery retries.

Expected

A root interactive workflow parked for the next user message is not startup-requeued as runnable work, or its queue name is accepted by the restarted handler. Normal parked sessions should not create an indefinite 5-second retry loop or high-volume error logs after every process restart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions