IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2010, 2:46:22 PM (16 years ago)
Author:
bills
Message:

delete the troublesome task publish.trigger and implement a survey task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/publish.pro

    r29507 r29720  
    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
    64 
    65 task           publish.trigger
    66   host         local
    67 
    68   periods      -poll $LOADPOLL
    69   periods      -exec $LOADEXEC
    70   periods      -timeout 30
    71   npending     1
    72 
    73   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
    11157
    11258task           publish.load
Note: See TracChangeset for help on using the changeset viewer.