IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2009, 8:51:50 AM (17 years ago)
Author:
bills
Message:

Add new tasks to handle promotion of exposures from chip to camera stage
and from camera to fake. Remove unreliable attempts to promote automatically
in the processed imfile mode. Add new -promoteexp modes to be called from
the tasks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/chip.pro

    r20932 r21463  
    190190
    191191# this variable will cycle through the known database names
     192$chip_promote_DB = 0
     193
     194# promote exposures for which all imfiles have completed processing
     195# sets the exposure state to full and queues warp processing if requested
     196task           chip.promoteexp
     197  host         local
     198
     199  periods      -poll $LOADPOLL
     200  periods      -exec $LOADEXEC
     201  periods      -timeout 30
     202  npending     1
     203
     204  stdout NULL
     205  stderr $LOGDIR/chip.promoteexp.log
     206
     207  task.exec
     208    $run = chiptool -promoteexp -limit 10
     209    if ($DB:n == 0)
     210      option DEFAULT
     211    else
     212      # save the DB name for the exit tasks
     213      option $DB:$chip_promote_DB
     214      $run = $run -dbname $DB:$chip_promote_DB
     215      $chip_promote_DB ++
     216      if ($chip_promote_DB >= $DB:n) set chip_promote_DB = 0
     217    end
     218    add_poll_args run
     219    command $run
     220  end
     221
     222  # success
     223  task.exit    0
     224  end
     225
     226  # locked list
     227  task.exit    default
     228    showcommand failure
     229  end
     230
     231  # operation times out?
     232  task.exit    timeout
     233    showcommand timeout
     234  end
     235end
     236
     237# this variable will cycle through the known database names
    192238$chip_cleanup_DB = 0
    193239
Note: See TracChangeset for help on using the changeset viewer.