IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24041


Ignore:
Timestamp:
May 3, 2009, 2:49:54 PM (17 years ago)
Author:
eugene
Message:

add warp.advancerun task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/warp.pro

    r23439 r24041  
    339339end
    340340
     341# this variable will cycle through the known database names
     342$warp_advance_DB = 0
     343
     344# advance exposures for which all imfiles have completed processing
     345# sets the exposure state to full and queues warp processing if requested
     346task           warp.advancerun
     347  host         local
     348
     349  periods      -poll $LOADPOLL
     350  periods      -exec 30
     351  periods      -timeout 60
     352  npending     1
     353
     354  stdout NULL
     355  stderr $LOGDIR/warp.advancerun.log
     356
     357  task.exec
     358    $run = warptool -advancerun -limit 10
     359    if ($DB:n == 0)
     360      option DEFAULT
     361    else
     362      # save the DB name for the exit tasks
     363      option $DB:$warp_advance_DB
     364      $run = $run -dbname $DB:$warp_advance_DB
     365      $warp_advance_DB ++
     366      if ($warp_advance_DB >= $DB:n) set warp_advance_DB = 0
     367    end
     368    add_poll_args run
     369    command $run
     370  end
     371
     372  # success
     373  task.exit    0
     374  end
     375
     376  # locked list
     377  task.exit    default
     378    showcommand failure
     379  end
     380
     381  task.exit    crash
     382    showcommand crash
     383  end
     384
     385  # operation times out?
     386  task.exit    timeout
     387    showcommand timeout
     388  end
     389end
     390
    341391# select images ready for warp analysis
    342392# new entries are added to warpPendingImfile
Note: See TracChangeset for help on using the changeset viewer.