Skip to content

[Core] ray start cli exit code 1 not 0 #41787

@MissiontoMars

Description

@MissiontoMars

What happened + What you expected to happen

When starting Ray with the command "ray start --head --block,", it will not exit if you attempt to terminate it using the "ray stop" command. However, if using the "ray stop -f" command to terminate it, the start command will return an exit code of 1.

In our environment, we would like the start command line to exit with an exit code of 0 when terminated with the "ray stop" command because this is not considered an exceptional situation.

Why does "ray start" always exit with an exit code of 1? Is it possible to exit with a code of 0 when receiving the expected return code?

Versions / Dependencies

ray 2.8.1

Reproduction script

ray start --head --block

ray stop/ray stop -f

Issue Severity

High: It blocks me from completing my task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issue, but not time-criticalbugSomething that is supposed to be working; but isn'tcoreIssues that should be addressed in Ray Corecore-apiusability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions