IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21463 for trunk/ippTasks


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.

Location:
trunk/ippTasks
Files:
2 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
  • trunk/ippTasks/fake.pro

    r19465 r21463  
    177177end
    178178
     179# promote exposures for which all imfiles have completed processing
     180# sets the exposure state to full and queues warp processing if requested
     181$fake_promote_DB = 0
     182task           fake.promoteexp
     183  host         local
     184
     185  periods      -poll $LOADPOLL
     186  periods      -exec $LOADEXEC
     187  periods      -timeout 30
     188  npending     1
     189
     190  stdout NULL
     191  stderr $LOGDIR/fake.promoteexp.log
     192
     193  task.exec
     194    $run = faketool -promoteexp -limit 10
     195    if ($DB:n == 0)
     196      option DEFAULT
     197    else
     198      # save the DB name for the exit tasks
     199      option $DB:$fake_promote_DB
     200      $run = $run -dbname $DB:$fake_promote_DB
     201      $fake_promote_DB ++
     202      if ($fake_promote_DB >= $DB:n) set fake_promote_DB = 0
     203    end
     204    add_poll_args run
     205    command $run
     206  end
     207
     208  # success
     209  task.exit    0
     210  end
     211
     212  # locked list
     213  task.exit    default
     214    showcommand failure
     215  end
     216
     217  # operation times out?
     218  task.exit    timeout
     219    showcommand timeout
     220  end
     221end
     222
    179223# this variable will cycle through the known database names
    180224$fake_cleanup_DB = 0
Note: See TracChangeset for help on using the changeset viewer.