Skip to content
Snippets Groups Projects
Commit 2f352301 authored by tewk's avatar tewk
Browse files

Added specific defined errorcodes that will be returned in the...

Added specific defined errorcodes that will be returned in the SLURM_RC_MESSAGE and formatted the slurm_protocol_pack file
parent 75bb6cec
No related branches found
No related tags found
No related merge requests found
......@@ -16,5 +16,13 @@
#define SLURM_ERROR -1
#define SLURM_FAILURE -1
/* job_mgr.c/job_create */
#define ESLURM_INVALID_PARTITION_SPECIFIED -2000
#define ESLURM_DEFAULT_PATITION_NOT_SET -2001
#define ESLURM_JOB_MISSING_PARTITION_KEY -2002
#define ESLURM_JOB_MISSING_REQUIRED_PARTITION_GROUP -2003
#define ESLURM_REQUESTED_NODES_NOT_IN_PARTITION -2004
#define ESLURM_TOO_MANY_REQUESTED_CPUS -2005
#define ESLURM_TOO_MANY_REQUESTED_NODES -2006
#define ESLURM_ERROR_ON_DESC_TO_RECORD_COPY -2007
#endif
......@@ -74,10 +74,11 @@ int pack_msg ( slurm_msg_t const * msg , char ** buffer , uint32_t * buf_len )
case REQUEST_SUBMIT_BATCH_JOB :
pack_job_desc ( (job_desc_msg_t * ) msg -> data , ( void ** ) buffer , buf_len ) ;
break ;
case RESPONSE_RESOURCE_ALLOCATION :
break ;
case RESPONSE_SUBMIT_BATCH_JOB :
case REQUEST_RECONFIGURE :
/* Message contains no body/information */
break ;
case REQUEST_CANCEL_JOB :
break ;
case REQUEST_CANCEL_JOB_STEP :
......@@ -86,9 +87,6 @@ int pack_msg ( slurm_msg_t const * msg , char ** buffer , uint32_t * buf_len )
break ;
case REQUEST_SIGNAL_JOB_STEP :
break ;
case REQUEST_RECONFIGURE :
/* Message contains no body/information */
break ;
case RESPONSE_CANCEL_JOB :
case RESPONSE_RECONFIGURE :
case RESPONSE_CANCEL_JOB_STEP :
......@@ -173,10 +171,10 @@ int unpack_msg ( slurm_msg_t * msg , char ** buffer , uint32_t * buf_len )
case REQUEST_SUBMIT_BATCH_JOB :
unpack_job_desc ( ( job_desc_msg_t **) & ( msg-> data ), ( void ** ) buffer , buf_len ) ;
break ;
case RESPONSE_RESOURCE_ALLOCATION :
break ;
case RESPONSE_SUBMIT_BATCH_JOB :
case REQUEST_RECONFIGURE :
/* Message contains no body/information */
break ;
case REQUEST_CANCEL_JOB :
break ;
case REQUEST_CANCEL_JOB_STEP :
......@@ -185,9 +183,6 @@ int unpack_msg ( slurm_msg_t * msg , char ** buffer , uint32_t * buf_len )
break ;
case REQUEST_SIGNAL_JOB_STEP :
break ;
case REQUEST_RECONFIGURE :
/* Message contains no body/information */
break ;
case RESPONSE_CANCEL_JOB :
case RESPONSE_RECONFIGURE :
case RESPONSE_CANCEL_JOB_STEP :
......
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