Commit 22165755 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Some meadows may disallow job-arrays, in which case we submit jobs one by one

parent dfbfa4e4
......@@ -10,6 +10,7 @@
"CleanupTempDirectoryKilledWorkers" : 0,
"MaxLimboSeconds" : 10,
"MaxRegistrationSeconds" : 30,
"CanSubmitJobArrays" : 1,
"LOCAL" : {
"MaxRegistrationSeconds" : 60,
"TotalRunningWorkersMax" : 2,
......
......@@ -585,8 +585,15 @@ sub run_autonomously {
. (defined($worker_cmd_args) ? " $worker_cmd_args" : '')
. ' -preregistered';
my $meadow_process_ids = $this_meadow->submit_workers_return_meadow_pids(
$specific_worker_cmd, $this_meadow_rc_worker_count, $iteration, $rc_name, $submission_cmd_args || '', $submit_log_subdir);
my $meadow_process_ids = [];
if ($this_meadow_rc_worker_count > 1 and !$this_meadow->config_get('CanSubmitJobArrays')) {
foreach my $i (1..$this_meadow_rc_worker_count) {
my $submitted_process_id = $this_meadow->submit_workers_return_meadow_pids($specific_worker_cmd, 1, "$iteration.$i", $rc_name, $submission_cmd_args || '', $submit_log_subdir);
push @$meadow_process_ids, $submitted_process_id->[0];
}
} else {
$meadow_process_ids = $this_meadow->submit_workers_return_meadow_pids($specific_worker_cmd, $this_meadow_rc_worker_count, $iteration, $rc_name, $submission_cmd_args || '', $submit_log_subdir);
}
warn "Submitted the following process_ids to ".$this_meadow->signature.": ".join(', ', @$meadow_process_ids)."\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment