IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 29, 2009, 3:29:41 PM (17 years ago)
Author:
bills
Message:

Add modes for creating the various tables used for the server side of distribution.
Add task to run disttool -definebyquery periodically to queue bundling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/dist.pro

    r23887 r24001  
    1414$distToProcess_DB = 0
    1515$distToAdvance_DB = 0
     16$distQueue_DB = 0
    1617
    1718### Check status of tasks
     
    293294end
    294295
     296task           dist.queueruns
     297#  host         local
     298
     299  periods      -poll $RUNPOLL
     300  periods      -exec 10
     301  periods      -timeout 45
     302  npending     1
     303
     304#  stdout $LOGDIR/dist.queuruns
     305#  stderr $LOGDIR/dist.queueruns
     306
     307  task.exec
     308    $MYARGS = ""
     309    # assume that we need magic unless we are running simtest
     310    if ($?SIMTEST_CAMERA != 0)
     311        $MYARGS = --no_magic
     312    end
     313
     314    $run = dist_queue_runs.pl $MYARGS --stage_limit 16 --logfile $LOGDIR/dist.queueruns
     315
     316    if ($DB:n == 0)
     317       $DBNAME = DEFAULT
     318    else
     319      # save the DB name for add_standard_args
     320      $DBNAME =  $DB:$distQueue_DB
     321      $distQueue_DB ++
     322      if ($distQueue_DB >= $DB:n) set distQueue_DB = 0
     323    end
     324
     325    host anyhost
     326
     327    add_standard_args run
     328
     329    # create the command line
     330    if ($VERBOSE > 1)
     331      echo command $run
     332    end
     333    command $run
     334  end
     335
     336  task.exit     $EXIT_SUCCESS
     337    # nothing to do
     338  end
     339
     340  # default exit status
     341  task.exit    default
     342    showcommand failure
     343  end
     344
     345  # operation timed out?
     346  task.exit    timeout
     347    showcommand timeout
     348  end
     349
     350  # operation timed out?
     351  task.exit    crash
     352    showcommand crash
     353  end
     354end
Note: See TracChangeset for help on using the changeset viewer.