- Timestamp:
- Jan 19, 2017, 12:01:07 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cleanup.php
r25 r26 195 195 $fn_tarfile = "analysis-results.tar"; 196 196 $num_try = 0; 197 $len1 = strlen( $fn_tarfile ); 198 write_log( "$me: fn_tarfile=$fn_tarfile len(tar)=$len1" ); 197 write_log( "$me: fn_tarfile=$fn_tarfile" ); 199 198 while ( ! file_exists( $fn_tarfile ) && $num_try < 3 ) 200 199 { … … 218 217 else write_log( "$me: NOT FOUND: $fn_tarfile" ); 219 218 219 $stderr = ''; 220 $stdout = ''; 221 $tarfile = ''; 220 222 if ( file_exists( $fn_stderr ) ) $stderr = file_get_contents( $fn_stderr ); 221 223 if ( file_exists( $fn_stdout ) ) $stdout = file_get_contents( $fn_stdout ); 222 224 if ( file_exists( $fn_tarfile ) ) $tarfile = file_get_contents( $fn_tarfile ); 225 // If stdout,stderr have no content, retry after delay 226 if ( strlen( $stdout ) == 0 || strlen( $stderr ) == 0 ) 227 { 228 sleep( 20 ); 229 if ( file_exists( $fn_stderr ) ) 230 $stderr = file_get_contents( $fn_stderr ); 231 if ( file_exists( $fn_stdout ) ) 232 $stdout = file_get_contents( $fn_stdout ); 233 } 234 235 write_log( "$me: length contents stderr,stdout,tarfile -- " 236 . strlen($stderr) . "," . strlen($stdout) . "," . strlen($tarfile) ); 223 237 224 238 if ( $cluster == 'alamo' || $cluster == 'alamo-local' ) -
trunk/cluster_status.php
r25 r26 4 4 include "$us3bin/listen-config.php"; 5 5 6 if ( ! preg_match( "/ localhost/", $dbhost) )6 if ( ! preg_match( "/_local/", $class_dir ) ) 7 7 { 8 8 $xml = get_data(); … … 18 18 foreach ( $data as $item ) 19 19 { 20 update( $item[ 'cluster' ], $item[ 'queued' ], $item[ 'status' ], $item[ 'running' ] ); 20 if ( ! preg_match( "/error/", $item[ 'running' ] ) ) 21 update( $item[ 'cluster' ], $item[ 'queued' ], $item[ 'status' ], $item[ 'running' ] ); 21 22 } 22 23 … … 170 171 global $dbhost; 171 172 global $org_domain; 172 173 if ( preg_match( "/localhost/", $dbhost ) ) 173 global $class_dir; 174 175 if ( preg_match( "/_local/", $class_dir ) ) 174 176 { 175 177 if ( preg_match( "/attlocal/", $org_domain ) ) -
trunk/gridctl.php
r25 r26 181 181 case "FINISHED": 182 182 case "DONE": 183 if ( is_aira_job( $gfacID ) )183 if ( ! is_aira_job( $gfacID ) ) 184 184 { 185 185 complete(); … … 464 464 global $us3_db; 465 465 global $loghdr; 466 global $class_dir; 466 467 467 468 // Double check that the gfacID exists … … 1049 1050 global $self; 1050 1051 global $loghdr; 1052 global $class_dir; 1051 1053 //echo "a_st: st_in$status_in : $gfacID\n"; 1052 1054 //$status_gw = standard_status( $status_in ); -
trunk/listen-config.php.template
r21 r26 13 13 $class_dir_p = '/srv/www/htdocs/common/class/'; // Class dir for production 14 14 $class_dir_d = '/srv/www/htdocs/common/class_devel/'; // Class dir for development 15 $class_dir_l = '/srv/www/htdocs/common/class_local/'; // Class dir for development 15 16 $class_dir = $class_dir_p; // Class dir default 16 17 -
trunk/manage-us3-pipe.php
r25 r26 66 66 if ( ! mysql_select_db( $db, $resource ) ) 67 67 { 68 write_log( "$self: Could not select DB $db " . mysql_error( $resource ) );68 write_log( "$self: Could not select DB $db " . mysql_error( $resource ) ); 69 69 write_log( "$self process(): original msg - $msg" ); 70 70 return; … … 174 174 if ( ! mysql_select_db( $db, $resource ) ) 175 175 { 176 write_log( "$self: Could not select DB $db " . mysql_error( $resource ) );176 write_log( "$self: Could not select DB $db " . mysql_error( $resource ) ); 177 177 return; 178 178 } … … 245 245 if ( ! mysql_select_db( $gDB, $gLink ) ) 246 246 { 247 write_log( "$self: Could not select DB $gDB " . mysql_error( $gLink ) );247 write_log( "$self: Could not select DB $gDB " . mysql_error( $gLink ) ); 248 248 return; 249 249 } … … 356 356 if ( ! mysql_select_db( $gDB, $gLink ) ) 357 357 { 358 write_log( "$self: Could not select DB $gDB " . mysql_error( $gLink ) );358 write_log( "$self: Could not select DB $gDB " . mysql_error( $gLink ) ); 359 359 return; 360 360 } -
trunk/update_notice.php
r25 r26 10 10 11 11 $s_cmd1 = "/usr/bin/svn info svn:$s_url1|grep Revision|cut -d ' ' -f2"; 12 $s_cmd2 = "/usr/bin/svn info svn:$s_url 1|grep Revision|cut -d ' ' -f2";12 $s_cmd2 = "/usr/bin/svn info svn:$s_url2|grep Revision|cut -d ' ' -f2"; 13 13 14 14 $s_rev1 = exec( $s_cmd1 );
Note:
See TracChangeset
for help on using the changeset viewer.