Changeset 28 for trunk/cleanup.php


Ignore:
Timestamp:
May 16, 2017, 8:55:58 PM (7 years ago)
Author:
gegorbet
Message:

fixes for alamo-local and airavata EXECUTING status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cleanup.php

    r27 r28  
    197197   $num_try    = 0;
    198198write_log( "$me: fn_tarfile=$fn_tarfile" );
    199    while ( ! file_exists( $fn_tarfile ) && $num_try < 3 )
     199   while ( ! file_exists( $fn_tarfile )  && $num_try < 3 )
    200200   {
    201201      sleep( $secwait );
     
    873873   // Figure out remote directory
    874874   $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" );
    876876
    877877   // Get stdout, stderr, output/analysis-results.tar
     
    880880   if ( $is_us3iab == 0 )
    881881   {
     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 );
     887write_log( "$me:  -LOCAL: remoteDir=$remoteDir" );
     888
    882889      // Figure out local working directory
    883890      if ( ! is_dir( "$work/$gfacID" ) ) mkdir( "$work/$gfacID", 0770 );
     
    942949
    943950   $lense = strlen( $stderr );
    944    if ( $lense > 10000000 )
     951   if ( $lense > 1000000 )
    945952   { // Replace exceptionally large stderr with smaller version
    946953      exec( "mv stderr stderr-orig", $output, $stat );
Note: See TracChangeset for help on using the changeset viewer.