int allocate_test(void) { int rc; job_desc_msg_t *j = job_desc_msg_create_from_opts(); if(!j) return SLURM_ERROR; rc = slurm_job_will_run(j); job_desc_msg_destroy(j); return rc; }
static int _allocate_test(slurm_opt_t *opt_local) { job_desc_msg_t *j; int rc; if ((j = _job_desc_msg_create_from_opts(opt_local)) == NULL) return SLURM_ERROR; if (opt_local->clusters && (slurmdb_get_first_avail_cluster(j, opt_local->clusters, &working_cluster_rec) != SLURM_SUCCESS)) { print_db_notok(opt_local->clusters, 0); return SLURM_ERROR; } rc = slurm_job_will_run(j); job_desc_msg_destroy(j); return rc; }