Changeset 29330
- Timestamp:
- Oct 5, 2010, 3:35:07 PM (16 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 1 added
- 4 edited
-
Makefile.am (modified) (1 diff)
-
pstamp_finish.pl (modified) (2 diffs)
-
pstamp_webrequest.pl (modified) (1 diff)
-
pstampparse.pl (modified) (2 diffs)
-
pstampstopfaulted (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/Makefile.am
r29085 r29330 20 20 pstamp_get_image_job.pl \ 21 21 psmkreq \ 22 pstampstopfaulted \ 22 23 pstamp_checkdependent.pl \ 23 24 request_finish.pl \ -
trunk/pstamp/scripts/pstamp_finish.pl
r28229 r29330 191 191 my $filter = $job_params->{filter}; 192 192 $filter = "0" if !$filter; 193 $exp_info = "0|0|0|$filter|0|0"; 193 my $mjd_obs = $job_params->{mjd_obs}; 194 $mjd_obs = "0" if !$mjd_obs; 195 $exp_info = "$mjd_obs|0|0|$filter|0|0"; 194 196 } 195 197 … … 477 479 my $ticks = timegm($sec, $min, $hr, $day, $mon-1, $year-1900); 478 480 481 # dateobs is UTC convert to TAI 482 # XXX: Do this properly 483 if ($year >= 2009) { 484 $ticks += 34; 485 } else { 486 $ticks += 33; 487 } 488 479 489 return 40587.0 + ($ticks/86400.); 480 490 } -
trunk/pstamp/scripts/pstamp_webrequest.pl
r29085 r29330 33 33 'dbname=s' => \$dbname, 34 34 'dbserver=s' => \$dbserver, 35 'project=s' => \$project,35 # 'project=s' => \$project, 36 36 'verbose' => \$verbose, 37 37 ); -
trunk/pstamp/scripts/pstampparse.pl
r28878 r29330 806 806 my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $component, $need_magic) = @_; 807 807 808 # XXX: The update process for warp and subsequent stages requires # destreaking to be performed 809 # because the -pending queries require the inputs to have magicked >= 0 810 # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent 811 $need_magic = 1 if $imagedb eq 'gpc1'; 808 if (($stage ne 'chip') and ($stage ne 'raw')) { 809 # XXX: The update process for warp and subsequent stages requires that destreaking to be performed 810 # because the -pending queries require the inputs to have magicked >= 0 811 # This is too conservative. For example stage is warp and the warp has never been destreaked we don't 812 # need magic either 813 # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent 814 # maybe we should put all of the smarts there and interpret the need_magic flag in the dependent as 815 # "The client needs to have magic performed" and let 816 # XXX: note the very nasty hard coding of gpc1 817 $need_magic = 1 if $imagedb eq 'gpc1'; 818 } 812 819 813 820 # chipRun's can be in full state if destreaking is necessary … … 900 907 $$r_newState = 'stop'; 901 908 $$r_fault = $PSTAMP_NOT_AVAILABLE; 902 } elsif ( !$image->{magicked}) {909 } elsif ($need_magic and !$image->{magicked}) { 903 910 $$r_newState = 'stop'; 904 911 $$r_fault = $PSTAMP_NOT_DESTREAKED;
Note:
See TracChangeset
for help on using the changeset viewer.
