Handle all possible states in SlurmJob.cpp
The current implementation does not cover all possible states a Slurm job can be in. A full list can be found in the official Slurm documentation. These should be divided into categories like
- still running (pending, running, completing, ...) → wait
- successfully finished (completed, ...) →
return 0;
- job ended "users fault" (failed, ...) →
return HPCJob::GetEnv()->GetExitBuildFailure;
- job ended "systems fault" (node_fail, out_of_memory, ...) →
return HPCJob::GetEnv->GetExitSystemFailure;