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/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.