Changeset 10 for trunk/gridctl.php
- Timestamp:
- Jun 4, 2015, 9:48:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gridctl.php
r6 r10 1 1 <?php 2 3 $us3bin = exec( "ls -d ~us3/bin" );4 include_once "$us3bin/listen-config.php";5 include "$us3bin/cleanup_aira.php";6 include "$us3bin/cleanup_gfac.php";7 2 8 3 // Global variables … … 74 69 { 75 70 $status_in = $status; 76 //write_log( "$loghdr status_in=$status_in" );77 71 $status = aira_status( $gfacID, $status_in ); 78 72 if($status != $status_in ) … … 155 149 case "FINISHED": 156 150 case "DONE": 157 if ( is_aira_job( $gfacID ) )158 {159 complete();160 }151 // if ( is_aira_job( $gfacID ) ) 152 // { 153 // complete(); 154 // } 161 155 case "PROCESSING": 162 156 default: … … 437 431 global $us3_db; 438 432 global $loghdr; 433 global $class_dir; 439 434 440 435 // Double check that the gfacID exists … … 460 455 if ( $requestID == 0 ) return; 461 456 462 if ( preg_match( "/US3-AIRA/i", $gfacID ) ) 463 { 457 if ( preg_match( "/US3-A/i", $gfacID ) ) 458 { 459 $me_devel = preg_match( "/class_devel/", $class_dir ); 460 $job_devel = preg_match( "/US3-ADEV/i", $gfacID ); 461 if ( ( !$me_devel && !$job_devel ) || 462 ( $me_devel && $job_devel ) ) 463 { // If job from appropriate Airavata server, process it 464 464 //write_log( "$loghdr CALLING aira_cleanup()" ); 465 aira_cleanup( $us3_db, $requestID, $gLink ); 465 aira_cleanup( $us3_db, $requestID, $gLink ); 466 } 466 467 //write_log( "$loghdr RTN FR aira_cleanup()" ); 467 468 } … … 625 626 global $cluster; 626 627 627 if ( preg_match( "/US3-A IRA/i", $gfacID ) &&628 if ( preg_match( "/US3-A/i", $gfacID ) && 628 629 ! preg_match( "/juropa/i", $cluster ) ) 629 630 { … … 997 998 global $self; 998 999 global $loghdr; 1000 global $class_dir; 999 1001 //echo "a_st: st_in$status_in : $gfacID\n"; 1000 1002 //$status_gw = standard_status( $status_in ); … … 1002 1004 //echo "a_st: st_db=$status_gw\n"; 1003 1005 $status = $status_gw; 1004 1005 if ( preg_match( "/US3-AIRA/i", $gfacID ) ) 1006 { 1006 $me_devel = preg_match( "/class_devel/", $class_dir ); 1007 $job_devel = preg_match( "/US3-ADEV/i", $gfacID ); 1008 $devmatch = ( ( !$me_devel && !$job_devel ) || 1009 ( $me_devel && $job_devel ) ); 1010 1011 //write_log( "$loghdr gfacID=$gfacID devmatch=$devmatch" ); 1012 //write_log( "$loghdr me_d=$me_devel jo_d=$job_devel cd=$class_dir" ); 1013 if ( preg_match( "/US3-A/i", $gfacID ) && $devmatch ) 1014 { // Airavata job and development/production type is right 1007 1015 $status_ex = getExperimentStatus( $gfacID ); 1016 //write_log( "$loghdr status_ex $status_ex" ); 1008 1017 1009 1018 if ( $status_ex == 'COMPLETED' ) … … 1047 1056 } 1048 1057 1049 write_log( "$loghdr status/_in/_gw/_ex=$status/$status_in/$status_gw/$status_ex" ); 1058 //write_log( "$loghdr status/_in/_gw/_ex=$status/$status_in/$status_gw/$status_ex" ); 1059 //write_log( " me_d=$me_devel jo_d=$job_devel dm=$devmatch cd=$class_dir" ); 1050 1060 if ( $status != $status_gw ) 1051 1061 {
Note:
See TracChangeset
for help on using the changeset viewer.