Index

cJobState

MMO\core\server · 1 symbol · generated 30 Sep 2026

enum

cJobState

SSHJob.php:9

The state of a detached remote command (SSHJob).

enum MMO\core\server\cJobState: string
Namespace
MMO\core\server

Index

DEADthe wrapper process is gone but no exit code was ever recorded -- it was killed (SIGKILL, the OOM killer, a reboot, ...).
DONEthe command finished and its exit code was recorded (SSHJob::getExitCode).
MISSINGthere is no job folder on the remote host: never started, or already SSHJob::clean 'ed.
RUNNINGthe wrapper process is alive: the command is still running.
STARTINGthe job folder exists but the wrapper hasn't written its pid yet -- normal for the first few milliseconds after SSH::execBackground, and a sign the wrapper died before starting if it lasts.
name readonly
value readonly
cases() static
from($value) static
tryFrom($value) static

Constants5

DEAD

the wrapper process is gone but no exit code was ever recorded -- it was killed (SIGKILL, the OOM killer, a reboot, ...). The output files still hold whatever it managed to write.

const DEAD = MMO\core\server\cJobState::DEAD

DONE

the command finished and its exit code was recorded (SSHJob::getExitCode).

const DONE = MMO\core\server\cJobState::DONE

MISSING

there is no job folder on the remote host: never started, or already SSHJob::clean 'ed.

const MISSING = MMO\core\server\cJobState::MISSING

RUNNING

the wrapper process is alive: the command is still running.

const RUNNING = MMO\core\server\cJobState::RUNNING

STARTING

the job folder exists but the wrapper hasn't written its pid yet -- normal for the first few milliseconds after SSH::execBackground, and a sign the wrapper died before starting if it lasts.

const STARTING = MMO\core\server\cJobState::STARTING

Properties2

name

readonly
readonly string $name
Type
string

value

readonly
readonly string $value
Type
string

Methods3

cases()

static
static function cases(): array
returnsarray

from($value)

static
static function from(string|int $value): static
$valuestring | int
returnsstatic

tryFrom($value)

static
static function tryFrom(string|int $value): ?static
$valuestring | int
returnsnull | static