Skip to content
Snippets Groups Projects
Commit 6093cab5 authored by Moe Jette's avatar Moe Jette
Browse files

cancel job function returns slurm error code, from dave jackson.

parent 8d16bda5
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,8 @@ message_t *
wiki_canceljob_t::action( void )
{
u_int32_t id = (u_int32_t) atol( m_jobid );
int rc;
verbose( "Wiki canceling job %s", m_jobid );
return new wiki_status_t( ( sched_cancel_job( id )
== SLURM_SUCCESS ) ? 0 : -1 );
rc = sched_cancel_job( id );
return new wiki_status_t( ( rc == SLURM_SUCCESS ) ? 0 : -rc );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment