IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 26, 2010, 10:34:11 AM (16 years ago)
Author:
eugene
Message:

merge updates from trunk

Location:
branches/eam_branches/ipp-20101103/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/ippTasks

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20101103/ippTasks/publish.pro

    r29507 r29837  
    1515
    1616macro publish.on
    17   task publish.trigger
    18     active true
    19   end
    2017  task publish.load
    2118    active true
     
    3027
    3128macro publish.off
    32   task publish.trigger
    33     active false
    34   end
    3529  task publish.load
    3630    active false
     
    5953
    6054# this variable will cycle through the known database names
    61 $publish_trigger_DB = 0
    6255$publish_load_DB = 0
    6356$publish_revert_DB = 0
    6457
    65 task           publish.trigger
     58task           publish.load
    6659  host         local
    6760
     
    7265
    7366  stdout NULL
    74   stderr $LOGDIR/publish.trigger.log
    75 
    76   task.exec
    77     if ($LABEL:n == 0) break
    78     #otherwise everything will be queued when there is no label.
    79     $run = pubtool -definerun
    80     if ($DB:n == 0)
    81       option DEFAULT
    82     else
    83       # save the DB name for the exit tasks
    84       option $DB:$publish_trigger_DB
    85       $run = $run -dbname $DB:$publish_trigger_DB
    86       $publish_trigger_DB ++
    87       if ($publish_trigger_DB >= $DB:n) set publish_trigger_DB = 0
    88     end
    89     add_poll_labels run
    90     command $run
    91   end
    92 
    93   # success
    94   task.exit    0
    95   end
    96 
    97   # locked list
    98   task.exit    default
    99     showcommand failure
    100   end
    101 
    102   task.exit    crash
    103     showcommand crash
    104   end
    105 
    106   # operation times out?
    107   task.exit    timeout
    108     showcommand timeout
    109   end
    110 end
    111 
    112 task           publish.load
    113   host         local
    114 
    115   periods      -poll $LOADPOLL
    116   periods      -exec $LOADEXEC
    117   periods      -timeout 30
    118   npending     1
    119 
    120   stdout NULL
    12167  stderr $LOGDIR/publish.load.log
    12268
    123   # this query should probably be label-based...
    12469  task.exec
    12570    $run = pubtool -pending
Note: See TracChangeset for help on using the changeset viewer.