int proctrack_p_plugin_wait(uint64_t id) { int status; if (job_waitjid((jid_t) id, &status, 0) == (jid_t)-1) return SLURM_ERROR; return SLURM_SUCCESS; }
int proctrack_p_plugin_destroy(uint64_t id) { int status; debug("destroying 0x%08lx 0x%08lx", id, threadid); job_waitjid((jid_t) id, &status, 0); /* Assume any error means job doesn't exist. Therefore, * return SUCCESS to slurmd so it doesn't retry continuously */ return SLURM_SUCCESS; }
int proctrack_p_destroy(uint64_t id) { int status; DEF_TIMERS; START_TIMER; debug("destroying 0x%08lx 0x%08lx", id, threadid); if (!threadid) job_waitjid((jid_t) id, &status, 0); /* Assume any error means job doesn't exist. Therefore, * return SUCCESS to slurmd so it doesn't retry continuously */ END_TIMER; if (debug_flags & DEBUG_FLAG_TIME_CRAY) INFO_LINE("call took: %s", TIME_STR); return SLURM_SUCCESS; }