18.2.56. PMIx_Job_state_string
PMIx_Job_state_string — Return the string representation of a
pmix_job_state_t value.
18.2.56.1. SYNOPSIS
#include <pmix.h>
const char* PMIx_Job_state_string(pmix_job_state_t state);
18.2.56.1.1. Python Syntax
from pmix import *
foo = PMIxClient()
name = foo.job_state_string(PMIX_JOB_STATE_RUNNING)
18.2.56.2. INPUT PARAMETERS
state: A job state value of typepmix_job_state_t. Recognized values includePMIX_JOB_STATE_UNDEF,PMIX_JOB_STATE_PREPPED,PMIX_JOB_STATE_LAUNCH_UNDERWAY,PMIX_JOB_STATE_RUNNING,PMIX_JOB_STATE_SUSPENDED,PMIX_JOB_STATE_CONNECTED,PMIX_JOB_STATE_UNTERMINATED,PMIX_JOB_STATE_TERMINATED, andPMIX_JOB_STATE_TERMINATED_WITH_ERROR.
18.2.56.3. DESCRIPTION
Return a human-readable, statically-allocated string describing the given job
state — for example, "RUNNING" or "TERMINATED WITH ERROR". If the
value does not correspond to a recognized job state, the fallback string
"UNKNOWN" is returned.
The returned pointer refers to constant storage owned by the PMIx library. The caller must not modify or free it.
18.2.56.4. RETURN VALUE
Returns a pointer to a constant, statically-allocated character string. The pointer
is always non-NULL and must not be freed by the caller.
See also
PMIx_IOF_channel_string(3),
PMIx_Link_state_string(3),
pmix_job_state_t(5)