IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21478 for trunk


Ignore:
Timestamp:
Feb 13, 2009, 4:32:37 PM (18 years ago)
Author:
bills
Message:

use -advance to advance complete summit copy for exposures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/summit.copy.pro

    r20500 r21478  
    5050      active true
    5151  end
     52  task summit.advance
     53      active true
     54  end
    5255end
    5356
    … …  
    7275  end
    7376  task pztool.clearfault
     77      active false
     78  end
     79  task summit.advance
    7480      active false
    7581  end
    … …  
    8187$pztoolPendingImfile_DB = 0
    8288$pztoolClearFault_DB = 0
     89$pztoolAdvance_DB = 0;
    8390
    8491# build a book of datastores to poll for data
    … …  
    474481    end
    475482end
     483
     484# promote exposures for which all imfiles have been copied
     485task           summit.advance
     486  host         local
     487
     488  periods      -poll $LOADPOLL
     489  periods      -exec $LOADEXEC
     490  periods      -timeout 30
     491  npending     1
     492
     493  stdout NULL
     494  stderr $LOGDIR/summit.advance.log
     495
     496  task.exec
     497    $run = pztool -advance
     498    if ($DB:n == 0)
     499      option DEFAULT
     500    else
     501      # save the DB name for the exit tasks
     502      option $DB:$pztoolAdvance_DB
     503      $run = $run -dbname $DB:$pztoolAdvance_DB
     504      $pztoolAdvance_DB ++
     505      if ($pztoolAdvance_DB >= $DB:n) set pztoolAdvance_DB = 0
     506    end
     507    add_poll_args run
     508    command $run
     509  end
     510
     511  # success
     512  task.exit    0
     513  end
     514
     515  # locked list
     516  task.exit    default
     517    showcommand failure
     518  end
     519
     520  # operation times out?
     521  task.exit    timeout
     522    showcommand timeout
     523  end
     524end
     525
Note: See TracChangeset for help on using the changeset viewer.