- Location:
- /trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk
-
Property svn:ignore
set to
*~
listen-config.php
-
Property svn:ignore
set to
-
/trunk/gridctl.php
r1 r3 19 19 if ( ! mysql_select_db( $gDB, $gLink ) ) 20 20 { 21 write_log( "$self: Could not connect to DB $gDB");21 write_log( "$self: Could not select DB $gDB - " . mysql_error() ); 22 22 mail_to_admin( "fail", "Internal Error: Could not select DB $gDB" ); 23 23 exit(); … … 412 412 413 413 case 'COMPLETED' : 414 case 'DONE' : 414 415 $query = "UPDATE analysis SET status='COMPLETE' WHERE gfacID='$gfacID'"; 415 416 $message = "Job status request reports job is COMPLETE"; … … 438 439 439 440 default : 441 // We shouldn't ever get here 440 442 $query = ""; 441 443 $message = "Job status was not recognized - $job_status"; 444 write_log( "$self - update_job_status: " . 445 "Job status was not recognized - $job_status\n" . 446 "gfacID = $gfacID\n" ); 442 447 break; 443 448 … … 535 540 // Parse the result 536 541 $gfac_status = parse_response( $xml ); 542 543 // This may not seem like the best place to do this, but here we have 544 // the xml straight from GFAC 545 $status_types = array('SUBMITTED', 546 'SUBMITED', 547 'INITIALIZED', 548 'PENDING', 549 'ACTIVE', 550 'COMPLETED', 551 'DONE', 552 'DATA', 553 'CANCELED', 554 'CANCELLED', 555 'FAILED', 556 'UNKNOWN'); 557 if ( ! in_array( $gfac_status, $status_types ) ) 558 mail_to_admin( 'debug', "gfacID: /$gfacID/\n" . 559 "XML: /$xml/\n" . 560 "Status: /$gfac_status/\n" ); 537 561 538 562 return $gfac_status; … … 731 755 $headers = "From: $org_name Admin<$admin_email>" . "\n"; 732 756 $headers .= "Cc: $org_name Admin<$admin_email>" . "\n"; 757 $headers .= "Bcc: Dan Zollars<dzollars@gmail.com>" . "\n"; // make sure 733 758 734 759 // Set the reply address -
/trunk/manage-us3-pipe.php
r1 r3 43 43 global $user; 44 44 global $passwd; 45 global $self; 45 46 46 47 $list = explode( ": ", $msg ); … … 56 57 if ( ! $resource ) 57 58 { 58 write_log( "$self process(): Could not connect to DB");59 write_log( "$self process(): Could not connect to MySQL - " . mysql_error() ); 59 60 write_log( "$self process(): original msg - $msg" ); 60 61 return;
Note:
See TracChangeset
for help on using the changeset viewer.