Changes in trunk/gridctl.php [3:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gridctl.php
r3 r1 19 19 if ( ! mysql_select_db( $gDB, $gLink ) ) 20 20 { 21 write_log( "$self: Could not select DB $gDB - " . mysql_error());21 write_log( "$self: Could not connect to DB $gDB" ); 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' :415 414 $query = "UPDATE analysis SET status='COMPLETE' WHERE gfacID='$gfacID'"; 416 415 $message = "Job status request reports job is COMPLETE"; … … 439 438 440 439 default : 441 // We shouldn't ever get here442 440 $query = ""; 443 441 $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" );447 442 break; 448 443 … … 540 535 // Parse the result 541 536 $gfac_status = parse_response( $xml ); 542 543 // This may not seem like the best place to do this, but here we have544 // the xml straight from GFAC545 $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" );561 537 562 538 return $gfac_status; … … 755 731 $headers = "From: $org_name Admin<$admin_email>" . "\n"; 756 732 $headers .= "Cc: $org_name Admin<$admin_email>" . "\n"; 757 $headers .= "Bcc: Dan Zollars<dzollars@gmail.com>" . "\n"; // make sure758 733 759 734 // Set the reply address
Note:
See TracChangeset
for help on using the changeset viewer.