Changeset 25837
- Timestamp:
- Oct 14, 2009, 11:24:13 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
ippScripts/scripts/ipp_cleanup.pl (modified) (5 diffs)
-
ippScripts/scripts/magic_destreak_cleanup.pl (modified) (3 diffs)
-
ippTasks/pstamp.pro (modified) (1 diff)
-
ippTools/share/magicdstool_tocleanup.sql (modified) (1 diff)
-
ippTools/src/magicdstool.c (modified) (1 diff)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_cleanup.pl
r25835 r25837 190 190 # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same. 191 191 my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool"; 192 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_ purged";192 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned"; 193 193 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 194 194 run(command => $command, verbose => $verbose); … … 309 309 # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same. 310 310 my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool"; 311 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_ purged";311 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned"; 312 312 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 313 313 run(command => $command, verbose => $verbose); … … 444 444 # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same. 445 445 my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool"; 446 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_ purged";446 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned"; 447 447 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 448 448 run(command => $command, verbose => $verbose); … … 580 580 # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same. 581 581 my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool"; 582 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_ purged";582 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned"; 583 583 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 584 584 run(command => $command, verbose => $verbose); … … 732 732 # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same. 733 733 my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool"; 734 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_ purged";734 $command = "$magicdstool -dbname gpc1 -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned"; 735 735 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 736 736 run(command => $command, verbose => $verbose); -
trunk/ippScripts/scripts/magic_destreak_cleanup.pl
r25822 r25837 106 106 107 107 108 &my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_ purged";109 &my_die(" purgenot allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw";108 &my_die("unexpected run state found: $state", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $state ne "goto_cleaned"; 109 &my_die("clean not allowed for raw stage, use goto_restore", $magic_ds_id, $PS_EXIT_CONFIG_ERROR) if $stage eq "raw"; 110 110 111 111 … … 210 210 211 211 if (!$no_update) { 212 my $result = $dbh->do("UPDATE magicDSRun SET state = ' purged' WHERE magic_ds_id = ?", undef, $magic_ds_id);212 my $result = $dbh->do("UPDATE magicDSRun SET state = 'cleaned' WHERE magic_ds_id = ?", undef, $magic_ds_id); 213 213 my_die("attempt to update magicDSRun failed", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR) if $result eq "0E0"; 214 214 } else { … … 246 246 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 247 247 248 my $command = "$magicdstool -updaterun - set_state purge_fault.$exit_code";248 my $command = "$magicdstool -updaterun -fault $exit_code"; 249 249 $command .= " -magic_ds_id $magic_ds_id"; 250 250 $command .= " -dbname $dbname" if defined $dbname; 251 251 252 252 # Add the processed file to the database 253 unless ( 1 or$no_update) {253 unless ($no_update) { 254 254 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 255 255 run(command => $command, verbose => $verbose); -
trunk/ippTasks/pstamp.pro
r25566 r25837 111 111 112 112 task.exec 113 stdout $LOGSUBDIR/pstamp.request.find.log113 stdout NULL 114 114 stderr $LOGSUBDIR/pstamp.request.find.log 115 115 if ($DB:n == 0) -
trunk/ippTools/share/magicdstool_tocleanup.sql
r25823 r25837 7 7 JOIN magicRun USING(magic_id) 8 8 JOIN rawExp USING(exp_id) 9 WHERE magicDSRun.state = 'goto_ purged'9 WHERE magicDSRun.state = 'goto_cleaned' 10 10 -- XXX: need to add fault to magicDSRun 11 11 -- AND magicDSRun.fault = 0 -
trunk/ippTools/src/magicdstool.c
r25835 r25837 903 903 (strcmp(state, "restored") == 0) || 904 904 (strcmp(state, "censored") == 0) || 905 (strcmp(state, " purged") == 0) ||905 (strcmp(state, "cleaned") == 0) || 906 906 (strcmp(state, "goto_restored") == 0) || 907 907 (strcmp(state, "goto_censored") == 0) || 908 (strcmp(state, "goto_ purged") == 0))908 (strcmp(state, "goto_cleaned") == 0)) 909 909 ) { 910 910 return false; -
trunk/ippconfig/recipes/filerules-split.mdc
r25751 r25837 228 228 PPSTAMP.OUTPUT.MASK OUTPUT {OUTPUT}.mk.fits MASK COMP_MASK FPA TRUE NONE 229 229 PPSTAMP.OUTPUT.VARIANCE OUTPUT {OUTPUT}.wt.fits VARIANCE COMP_WT FPA TRUE NONE 230 # mosaic image used for making stamps of raw images. Not saved. 230 231 PPSTAMP.CHIP OUTPUT {OUTPUT}.ch.fits IMAGE NONE CHIP FALSE MEF 232 PPSTAMP.OUTPUT.JPEG1 OUTPUT {OUTPUT}.jpg JPEG NONE FPA TRUE NONE 231 233 232 234 PPSIM.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.fits IMAGE NONE CHIP TRUE SPLIT
Note:
See TracChangeset
for help on using the changeset viewer.
