remote job submission: corrected job params retrieval

Testing remote job submission using the result from PR #2416 revealed an issue with the job params retrieval.
This commit is contained in:
lfield 2018-05-12 22:26:36 +02:00 committed by GitHub
parent c03764ecb0
commit 0e49f4446d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -459,11 +459,11 @@ function submit_batch($r) {
} }
$job_params = new StdClass; $job_params = new StdClass;
$job_params->rsc_disk_bound = (double) $r->job_params->rsc_disk_bound; $job_params->rsc_disk_bound = (double) $r->batch->rsc_disk_bound;
$job_params->rsc_fpops_est = (double) $r->job_params->rsc_fpops_est; $job_params->rsc_fpops_est = (double) $r->batch->rsc_fpops_est;
$job_params->rsc_fpops_bound = (double) $r->job_params->rsc_fpops_bound; $job_params->rsc_fpops_bound = (double) $r->batch->rsc_fpops_bound;
$job_params->rsc_memory_bound = (double) $r->job_params->rsc_memory_bound; $job_params->rsc_memory_bound = (double) $r->batch->rsc_memory_bound;
$job_params->delay_bound = (double) $r->job_params->delay_bound; $job_params->delay_bound = (double) $r->batch->delay_bound;
// could add quorum-related stuff // could add quorum-related stuff
$input_template_filename = (string) $r->batch->input_template_filename; $input_template_filename = (string) $r->batch->input_template_filename;