cJobState
MMO\core\server · 1 symbol · generated 30 Sep 2026
cJobState
SSHJob.php:9The state of a detached remote command (SSHJob).
- Namespace
MMO\core\server
Index
| DEAD | the wrapper process is gone but no exit code was ever recorded -- it was killed (SIGKILL, the OOM killer, a reboot, ...). | |
| DONE | the command finished and its exit code was recorded (SSHJob::getExitCode). | |
| MISSING | there is no job folder on the remote host: never started, or already SSHJob::clean 'ed. | |
| RUNNING | the wrapper process is alive: the command is still 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. | |
| 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.
DONE
the command finished and its exit code was recorded (SSHJob::getExitCode).
MISSING
there is no job folder on the remote host: never started, or already SSHJob::clean 'ed.
RUNNING
the wrapper process is alive: the command is still 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.
Properties2
name
readonly- Type
- string
value
readonly- Type
- string
Methods3
cases()
static| returns | array |