diff --git a/src/slurmctld/step_mgr.c b/src/slurmctld/step_mgr.c index 24e77b80da0d7ee63c02d0e62b8696fd92c22f30..d5081e02b7d048e6ea5b1a0e2d82562ad38f0edd 100644 --- a/src/slurmctld/step_mgr.c +++ b/src/slurmctld/step_mgr.c @@ -673,8 +673,10 @@ step_create(job_step_create_request_msg_t *step_specs, } if ((step_specs->num_tasks < 1) - || (step_specs->num_tasks > (node_count*MAX_TASKS_PER_NODE))) + || (step_specs->num_tasks > (node_count*MAX_TASKS_PER_NODE))) { + info("step has invalid task count: %u", step_specs->num_tasks); return ESLURM_BAD_TASK_COUNT; + } step_ptr = create_step_record (job_ptr); if (step_ptr == NULL)