Changeset 28 for trunk/gridctl.php
- Timestamp:
- May 16, 2017, 8:55:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gridctl.php
r27 r28 61 61 continue; 62 62 } 63 } 64 65 else if ( $me_devel ) 66 { // Local (us3iab/-local) and class_devel: skip processing 67 continue; 63 68 } 64 69 … … 533 538 $query = "UPDATE analysis SET status='RUNNING' WHERE gfacID='$gfacID'"; 534 539 $message = "Job status request reports job is RUNNING"; 540 break; 541 542 case 'EXECUTING' : 543 $message = "Job status request reports job is EXECUTING"; 535 544 break; 536 545 … … 825 834 826 835 $cmd = "/usr/bin/qstat -a $gfacID 2>&1|tail -n 1"; 836 //write_log( "$self cmd: $cmd" ); 837 //write_log( "$self cluster: $cluster" ); 838 //write_log( "$self gfacID: $gfacID" ); 827 839 if ( ! preg_match( "/us3iab/", $cluster ) ) 828 840 { 829 841 $system = "$cluster.uthscsa.edu"; 830 842 $system = preg_replace( "/\-local/", "", $system ); 843 //write_log( "$self system: $system" ); 831 844 $cmd = "/usr/bin/ssh -x us3@$system " . $cmd; 845 //write_log( "$self cmd: $cmd" ); 832 846 } 833 847 834 848 $result = exec( $cmd ); 849 //write_log( "$self result: $result" ); 835 850 836 851 if ( $result == "" || preg_match( "/^qstat: Unknown/", $result ) ) 837 852 { 838 853 write_log( "$self get_local_status: Local job $gfacID unknown" ); 839 write_log( "$self get_local_status: result=$result" );854 //write_log( "$self get_local_status: result=$result" ); 840 855 return 'UNKNOWN'; 841 856 } … … 852 867 853 868 case "C" : // Job has completed 854 case "" :855 869 $status = 'COMPLETED'; 856 870 break; … … 985 999 case 'SCHEDULED' : 986 1000 case 'submitted' : 1001 case 'SUBMITTED' : 987 1002 case '' : 988 1003 $status = 'SUBMITTED'; … … 1101 1116 } 1102 1117 1118 else if ( $status_ex == 'EXECUTING' ) 1119 { 1120 $status = standard_status( $status_gw ); 1121 write_log( "$loghdr status/_in/_gw/_ex=$status/$status_in/$status_gw/$status_ex" ); 1122 } 1123 1103 1124 else 1104 1125 { // Experiment not COMPLETED/FINISHED/DONE: use experiment status
Note:
See TracChangeset
for help on using the changeset viewer.