Changeset 16379
- Timestamp:
- Feb 8, 2008, 11:28:41 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ippScripts/scripts/summit_copy.pl (modified) (4 diffs)
-
ippTasks/summit.copy.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/summit_copy.pl
r16375 r16379 90 90 unless ($success) { 91 91 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 92 &my_die("Unable to perform dsget: $error_code", $exp_name, $inst, $telescope, $class, $class_id, $ error_code);92 &my_die("Unable to perform dsget: $error_code", $exp_name, $inst, $telescope, $class, $class_id, $uri, $error_code); 93 93 } 94 94 } else { … … 113 113 unless ($success) { 114 114 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 115 warn("Unable to perform pztool -copydone: $error_code\n");115 warn("Unable to perform $command: $error_code\n"); 116 116 exit($error_code); 117 117 } … … 122 122 sub my_die 123 123 { 124 my $msg = shift; # Warning message on die125 my $exp_name = shift; # Chiptool identifier126 my $inst = shift; # Chiptool identifier124 my $msg = shift; # Warning message on die 125 my $exp_name = shift; # Chiptool identifier 126 my $inst = shift; # Chiptool identifier 127 127 my $telescope = shift; # Class identifier 128 my $class = shift; # Class identifier 129 my $class_id = shift; # Class identifier 128 my $class = shift; # Class identifier 129 my $class_id = shift; # Class identifier 130 my $uri = shift; # Class identifier 130 131 my $exit_code = shift; # Exit code to add 131 132 … … 140 141 $command .= " -class $class"; 141 142 $command .= " -class_id $class_id"; 143 $command .= " -uri $uri"; 142 144 $command .= " -code $exit_code"; 143 145 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippTasks/summit.copy.pro
r16376 r16379 44 44 active true 45 45 end 46 task dsget46 task summit_copy 47 47 active true 48 48 end … … 65 65 active false 66 66 end 67 task dsget67 task summit_copy 68 68 active false 69 69 end … … 100 100 101 101 # run pzgetexp periodically to populate pzPendingExp in the database (no I/O) 102 # this task is querying the data store for a list of exposures ("filesets") 103 # and inserting these into a db table on the local cluster (pzPendingExp) 102 104 task pzgetexp 103 105 periods -exec 10 … … 177 179 end 178 180 179 # run pzgetimfiles on pending exps 181 # run pzgetimfiles on pending exps. analogous to pzgetexp, this task 182 # is downloading a list of imfiles reported by the datastore for a 183 # given exposure ("fileset"), and placing the result in the local 184 # database table of imfiles 180 185 task pzgetimfile 181 186 periods -exec 0.05 … … 270 275 271 276 272 # get dsget to retreive an imfileand then call pztool -copydone273 task dsget277 # retreive an imfile with dsget and then call pztool -copydone 278 task summit_copy 274 279 periods -exec 5 275 280 periods -poll 0.05
Note:
See TracChangeset
for help on using the changeset viewer.
