Changeset 39
- Timestamp:
- Dec 4, 2011, 11:17:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oarutils/oar-parexec
r38 r39 104 104 my %scheduled = (); 105 105 106 my $oar_checkpoint = new Coro::Semaphore 0; 107 $SIG{USR2} = sub { $oar_checkpoint->up }; 108 106 109 async { 107 110 for my $job (@job) { … … 117 120 118 121 my $job_ressource = $ressources->get; 122 123 last if $oar_checkpoint->count > 0; 119 124 120 125 my ($node_connect) = split ',', $job_ressource; … … 175 180 } 176 181 182 $finished->send if $oar_checkpoint->count > 0 and keys(%scheduled) == 0; 183 177 184 $finished->send if $job_todo->count == 0; 178 185 cede;
Note: See TracChangeset
for help on using the changeset viewer.