Changeset 113
- Timestamp:
- Jun 22, 2015, 7:09:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oarutils/oar-parexec
r89 r113 29 29 my $sig_transmit; 30 30 my $sig_checkpoint = 'USR2'; 31 my $job_launch_brake = 1; # one second time brake 31 32 32 33 Getopt::Long::GetOptions( … … 208 209 # asynchrone start job block 209 210 async { 211 my $timer; 210 212 JOB: 211 213 for my $job (@job) { … … 228 230 } 229 231 232 # wait to not re-launch oarstat to fast 233 # equivalent to sleep $job_launch_brake 234 $timer = AE::now + $job_launch_brake; 235 while ( AE::now < $timer ) { 236 # force update of AE time 237 AE::now_update; 238 cede; 239 } 240 230 241 # take job ressource 231 242 my $job_ressource = $ressources->get; … … 242 253 $fh = unblock $fh; 243 254 244 my $msg = sprintf "start job %${job_name_maxlen}s / %5i at %s o n node %s\n",245 $job_name, $job_pid, time, $ job_ressource;255 my $msg = sprintf "start job %${job_name_maxlen}s / %5i at %s oar job %i on node %s\n", 256 $job_name, $job_pid, time, $ENV{OAR_JOB_ID}, $job_ressource; 246 257 $log_h->print($msg) if $logtrace; 247 258 print($msg) if $verbose; … … 302 313 # non blocking PID test 303 314 if (waitpid($job_pid, WNOHANG)) { 304 my $msg = sprintf "end job %${job_name_maxlen}s / %5i at %s o n node %s\n",315 my $msg = sprintf "end job %${job_name_maxlen}s / %5i at %s oar job %i on node %s\n", 305 316 $scheduled{$job_pid}->{name}, 306 $job_pid, time, $ scheduled{$job_pid}->{ressource};317 $job_pid, time, $ENV{OAR_JOB_ID}, $scheduled{$job_pid}->{ressource}; 307 318 308 319 # Job non finish, just suspend if received checkpoint signal
Note: See TracChangeset
for help on using the changeset viewer.