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

Added a bunch of job submit error codes.

Converted job unpack function to allocate memory (instead of setting
a pointer and freeing it - and aborting).
parent 1caf6630
No related branches found
No related tags found
No related merge requests found
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#define SLURM_FAILURE -1 #define SLURM_FAILURE -1
/* job_mgr.c/job_create */ /* job_mgr.c/job_create */
#define ESLURM_INVALID_PARTITION_SPECIFIED -2000 #define ESLURM_INVALID_PARTITION_SPECIFIED -2000
#define ESLURM_DEFAULT_PATITION_NOT_SET -2001 #define ESLURM_DEFAULT_PATITION_NOT_SET -2001
#define ESLURM_JOB_MISSING_PARTITION_KEY -2002 #define ESLURM_JOB_MISSING_PARTITION_KEY -2002
#define ESLURM_JOB_MISSING_REQUIRED_PARTITION_GROUP -2003 #define ESLURM_JOB_MISSING_REQUIRED_PARTITION_GROUP -2003
#define ESLURM_REQUESTED_NODES_NOT_IN_PARTITION -2004 #define ESLURM_REQUESTED_NODES_NOT_IN_PARTITION -2004
#define ESLURM_TOO_MANY_REQUESTED_CPUS -2005 #define ESLURM_TOO_MANY_REQUESTED_CPUS -2005
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
#define ESLURM_JOB_NAME_TOO_LONG -2011 #define ESLURM_JOB_NAME_TOO_LONG -2011
#define ESLURM_DUPLICATE_JOB_ID -2012 #define ESLURM_DUPLICATE_JOB_ID -2012
#define ESLURM_INVALID_PROCS_PER_TASK -2013 #define ESLURM_INVALID_PROCS_PER_TASK -2013
#define ESLURM_NOT_TOP_PRIORITY -2014
#define ESLURM_REQUESTED_NODE_CONFIGURATION_UNAVAILBLE -2015
#define ESLURM_NODES_BUSY -2016
/* partition_mgr.c/update_part */ /* partition_mgr.c/update_part */
#define ESLURM_PROTOCOL_INVALID_PARTITION_NAME -2101 #define ESLURM_PROTOCOL_INVALID_PARTITION_NAME -2101
......
...@@ -549,7 +549,7 @@ int unpack_job_table ( job_table_t * job , void ** buf_ptr , int * buffer_size ) ...@@ -549,7 +549,7 @@ int unpack_job_table ( job_table_t * job , void ** buf_ptr , int * buffer_size )
unpackstr_xmalloc (&job->nodes, &uint16_tmp, buf_ptr, buffer_size); unpackstr_xmalloc (&job->nodes, &uint16_tmp, buf_ptr, buffer_size);
unpackstr_xmalloc (&job->partition, &uint16_tmp, buf_ptr, buffer_size); unpackstr_xmalloc (&job->partition, &uint16_tmp, buf_ptr, buffer_size);
unpackstr_xmalloc (&job->name, &uint16_tmp, buf_ptr, buffer_size); unpackstr_xmalloc (&job->name, &uint16_tmp, buf_ptr, buffer_size);
unpackstr_ptr (&node_inx_str, &uint16_tmp, buf_ptr, buffer_size); unpackstr_xmalloc (&node_inx_str, &uint16_tmp, buf_ptr, buffer_size);
if (node_inx_str == NULL) if (node_inx_str == NULL)
job->node_inx = bitfmt2int(""); job->node_inx = bitfmt2int("");
else { else {
......
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