- Timestamp:
- Jul 10, 2015, 11:52:20 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippScripts/scripts/addstar_multi_run.pl (modified) (2 diffs)
-
ippScripts/scripts/minidvodb_createdb.pl (modified) (4 diffs)
-
ippTasks/minidvodb.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/addstar_multi_run.pl
r38583 r38584 124 124 run(command => $command, verbose => $verbose); 125 125 &my_die( "Unable to get info on addRun", $stage_id,$stage, $label, $PS_EXIT_SYS_ERROR) unless $success; 126 if (scalar @$stdout_buf == 0 ) { #it lists nothing if it is the first 127 &my_die( "empty addRun", $stage_id,$stage,$label, $PS_EXIT_SYS_ERROR); 128 126 if (scalar @$stdout_buf == 0 ) { 127 #&my_die( "empty addRun", $stage_id,$stage,$label, $PS_EXIT_SYS_ERROR); 128 print "empty addRun, exiting... $stage, $stage_id, $label\n"; 129 exit 0; 129 130 } else { 130 131 my $metadata = $mdcParser->parse(join "", @$stdout_buf) or … … 291 292 carp($msg); 292 293 if (defined $stage_id and not $no_update) { 293 my $command = "$addtool - stage_id $stage_id";294 my $command = "$addtool -multiadd -stage_id $stage_id"; 294 295 $command .= " -addprocessedexp"; 295 296 $command .= " -fault $exit_code"; -
trunk/ippScripts/scripts/minidvodb_createdb.pl
r33030 r38584 39 39 } 40 40 41 my ( $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_ group, $camera, $verbose, $no_update,41 my ( $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_nums, $minidvodb_group, $camera, $verbose, $no_update, 42 42 $no_op, $redirect, $save_temps); 43 43 GetOptions( … … 49 49 'minidvodb|w=s' => \$minidvodb, # output miniDVODB 50 50 'interval|w=s' => \$minidvodb_interval, #interval between creation of minidvodbs (default = 1day) 51 'num|w=s' => \$minidvodb_nums, #interval between creation of minidvodbs (default = 500 addRuns) 51 52 'verbose' => \$verbose, # Print to stdout 52 53 'no-update' => \$no_update, # Update the database? … … 111 112 $minidvodb_interval = 1; 112 113 } 114 if (!defined $minidvodb_nums) { 115 $minidvodb_nums = 500 116 } 113 117 114 118 … … 207 211 208 212 209 if ($addRun_count > 500) {213 if ($addRun_count > $minidvodb_nums) { 210 214 #it's too big, create_new 211 215 $create_new = 1; -
trunk/ippTasks/minidvodb.pro
r35820 r38584 131 131 ## you get no choice - you add all of them in at the same time. you can always turn off the tasks you don't want to run. 132 132 macro add.minidvodb 133 if ($0 != 6)134 echo "USAGE: add.minidvodb (minidvodb_group) (minidvodb) (dvodb) (interval days) ( camera)"133 if ($0 != 7) 134 echo "USAGE: add.minidvodb (minidvodb_group) (minidvodb) (dvodb) (interval days) (interval addruns) (camera)" 135 135 break 136 136 end … … 159 159 book setword MINIDVODB_CREATE $1 DVODB $3 160 160 book setword MINIDVODB_CREATE $1 DVODB_DAYS $4 161 book setword MINIDVODB_CREATE $1 CAMERA $5 161 book setword MINIDVODB_CREATE $1 DVODB_NUM $5 162 book setword MINIDVODB_CREATE $1 CAMERA $6 162 163 book setword MINIDVODB_CREATE $1 STATE PENDING 163 164 end … … 549 550 book getword MINIDVODB_CREATE $minidvodb_group DVODB -var dvodb 550 551 book getword MINIDVODB_CREATE $minidvodb_group DVODB_DAYS -var dvodb_days 552 book getword MINIDVODB_CREATE $minidvodb_group DVODB_NUM -var dvodb_num 551 553 book getword MINIDVODB_CREATE $minidvodb_group CAMERA -var camera 552 $run = minidvodb_createdb.pl --camera $camera --outroot $dvodb --dvodb $dvodb --minidvodb $minidvodb --minidvodb_group $minidvodb_group --interval $dvodb_days 554 $run = minidvodb_createdb.pl --camera $camera --outroot $dvodb --dvodb $dvodb --minidvodb $minidvodb --minidvodb_group $minidvodb_group --interval $dvodb_days --num $dvodb_num 553 555 554 556 if ($DB:n == 0)
Note:
See TracChangeset
for help on using the changeset viewer.
