- Timestamp:
- May 16, 2017, 8:55:58 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cleanup.php
r27 r28 197 197 $num_try = 0; 198 198 write_log( "$me: fn_tarfile=$fn_tarfile" ); 199 while ( ! file_exists( $fn_tarfile ) &&$num_try < 3 )199 while ( ! file_exists( $fn_tarfile ) && $num_try < 3 ) 200 200 { 201 201 sleep( $secwait ); … … 873 873 // Figure out remote directory 874 874 $remoteDir = sprintf( "$work_remote/$db-%06d", $requestID ); 875 write_log( "$me: is_us3iab=$is_us3iab remoteDir=$remoteDir" );875 //write_log( "$me: is_us3iab=$is_us3iab remoteDir=$remoteDir" ); 876 876 877 877 // Get stdout, stderr, output/analysis-results.tar … … 880 880 if ( $is_us3iab == 0 ) 881 881 { 882 // For "-local", recompute remote work directory 883 $cmd = "ssh us3@$cluster.uthscsa.edu 'ls -d ~us3/lims/work/local' 2/dev/null"; 884 exec( $cmd, $output, $stat ); 885 $work_remote = $output[ 0 ]; 886 $remoteDir = sprintf( "$work_remote/$db-%06d", $requestID ); 887 write_log( "$me: -LOCAL: remoteDir=$remoteDir" ); 888 882 889 // Figure out local working directory 883 890 if ( ! is_dir( "$work/$gfacID" ) ) mkdir( "$work/$gfacID", 0770 ); … … 942 949 943 950 $lense = strlen( $stderr ); 944 if ( $lense > 1000000 0)951 if ( $lense > 1000000 ) 945 952 { // Replace exceptionally large stderr with smaller version 946 953 exec( "mv stderr stderr-orig", $output, $stat ); -
trunk/cluster_status.php
r26 r28 176 176 { 177 177 if ( preg_match( "/attlocal/", $org_domain ) ) 178 $clusters = array( "us3iab-devel" );178 $clusters = array( "us3iab-devel", "alamo-local" ); 179 179 else 180 180 $clusters = array( "us3iab-node0" ); … … 209 209 break; 210 210 } 211 case 'alamo-local': 211 212 case 'alamo': 212 213 { -
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 -
trunk/listen-config.php.template
r26 r28 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 development15 $class_dir_l = '/srv/www/htdocs/common/class_local/'; // Class dir for local 16 16 $class_dir = $class_dir_p; // Class dir default 17 17
Note:
See TracChangeset
for help on using the changeset viewer.