Skip to content

serve: a PD stage whose stop failed can no longer be reset or stopped #174

Closed

Description

@gspark-etri

Problem

submit("stop") sets accepting=False before the owner checks quiescence. Stop only fails on a poisoned stage, and after that /v1/admin/reset and a second stop return 503 "owner not accepting work" while the owner thread keeps spinning.

Evidence and reproduction

opt_prime/opt_prime/accel/serve/llmd.py:410-411, :441-442. Ran: stop -> 409, reset -> 503, stop -> 503, thread still alive.

Environment

optimus-rm @253be20; Python 3.10, torch 2.10.0+cu128, transformers 5.1.0; RNGD+A100 host (CPU / one A100 for the checks).

Scope

serve/llmd.py.

Done when

After a failed stop, reset and stop still work; a test covers the sequence.

Owner

@gspark-etri

Activity

  1. gspark-etri commented on Oct 23, 2026

    @gspark-etri
    CollaboratorAuthor

    Fixed by #183, squash-merged into optimus-rm.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions