IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27035


Ignore:
Timestamp:
Feb 22, 2010, 4:46:26 PM (16 years ago)
Author:
bills
Message:

remove rcserer.checkstatus tasks. They aren't being used

Location:
trunk/ippTasks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/dist.cleanup.pro

    r26567 r27035  
    4545  periods      -timeout 30
    4646  npending     1
    47   active       false
    4847
    4948  stdout NULL
     
    9998  periods      -exec $RUNEXEC
    10099  periods      -timeout 600
    101   active       false
     100
     101  host anyhost
    102102
    103103  task.exec
  • trunk/ippTasks/rcserver.pro

    r26170 r27035  
    99### Initialise the books containing the tasks to do
    1010book init rcPendingFS
    11 book init rcPendingDest
    1211
    1312### Database lists
    1413$rcPendingFS_DB = 0
    15 $rcPendingDest_DB = 0
    1614
    1715### Check status of tasks
    1816macro rcserver.status
    1917  book listbook rcPendingFS
    20   book listbook rcPendingDest
    2118end
    2219
     
    2421macro rcserver.reset
    2522  book init rcPendingFS
    26   book init rcPendingDest
    2723end
    2824
     
    3531    active true
    3632  end
    37   task rcserver.checkstatus.load
    38     active true
    39   end
    40   task rcserver.checkstatus.run
    41     active true
    42   end
    4333end
    4434macro rcserver.off
     
    4737  end
    4838  task rcserver.makefileset.run
    49     active false
    50   end
    51   task rcserver.checkstatus.load
    52     active false
    53   end
    54   task rcserver.checkstatus.run
    5539    active false
    5640  end
     
    172156  end
    173157end
    174 
    175 
    176 task           rcserver.checkstatus.load
    177   host         local
    178 
    179   periods      -poll $LOADPOLL
    180 #  periods      -exec $LOADEXEC
    181   periods      -exec 20
    182   periods      -timeout 30
    183   npending     1
    184 
    185   stdout NULL
    186   stderr $LOGSUBDIR/rcserver.checkstatus.load.log
    187 
    188   task.exec
    189     $run = disttool -pendingdest
    190     if ($DB:n == 0)
    191       option DEFAULT
    192     else
    193       # save the DB name for the exit tasks
    194       option $DB:$rcPendingDest_DB
    195       $run = $run -dbname $DB:$rcPendingDest_DB
    196       $rcPendingDest_DB ++
    197       if ($rcPendingDest_DB >= $DB:n) set rcPendingDest_DB = 0
    198     end
    199     add_poll_args run
    200     add_poll_labels run
    201     command $run
    202   end
    203 
    204   # success
    205   task.exit    0
    206     # convert 'stdout' to book format
    207     ipptool2book stdout rcPendingDest -key dest_id -uniq -setword dbname $options:0 -setword pantaskState INIT
    208     if ($VERBOSE > 2)
    209       book listbook rcPendingDest
    210     end
    211 
    212     # delete existing entries in the appropriate pantaskStates
    213     process_cleanup rcPendingDest
    214   end
    215 
    216   # locked list
    217   task.exit    default
    218     showcommand failure
    219   end
    220 
    221   # operation times out?
    222   task.exit    timeout
    223     showcommand timeout
    224   end
    225 end
    226 
    227 task           rcserver.checkstatus.run
    228   periods      -poll $RUNPOLL
    229   periods      -exec $RUNEXEC
    230   periods      -timeout 60
    231 
    232   periods      -exec 20
    233 
    234   task.exec
    235     book npages rcPendingDest -var N
    236     if ($N == 0) break
    237     if ($NETWORK == 0) break
    238    
    239     # look for new components to process (pantaskState == INIT)
    240     book getpage rcPendingDest 0 -var pageName -key pantaskState INIT
    241     if ("$pageName" == "NULL") break
    242 
    243     stdout NULL
    244     stderr $LOGSUBDIR/rcserver.checkstatus.run.log
    245 
    246     book setword rcPendingDest $pageName pantaskState RUN
    247     book getword rcPendingDest $pageName dest_id -var DEST_ID
    248     book getword rcPendingDest $pageName dest_id -var DEST_ID
    249     book getword rcPendingDest $pageName status_uri -var STATUS_URI
    250     book getword rcPendingDest $pageName last_fileset -var LAST_FILESET
    251     book getword rcPendingDest $pageName dbname -var DBNAME
    252 
    253     host anyhost
    254 
    255     $run = rcserver_checkstatus.pl --dest_id $DEST_ID --dest_id $DEST_ID --status_uri $STATUS_URI --last_fileset $LAST_FILESET
    256     add_standard_args run
    257 
    258     # save the pageName for future reference below
    259     options $pageName
    260 
    261     # create the command line
    262     if ($VERBOSE > 1)
    263       echo command $run
    264     end
    265     command $run
    266   end
    267 
    268   # default exit status
    269   task.exit    default
    270     process_exit rcPendingDest $options:0 $JOB_STATUS
    271   end
    272 
    273   # operation timed out?
    274   task.exit    timeout
    275     showcommand timeout
    276     book setword rcPendingDest $options:0 pantaskState TIMEOUT
    277   end
    278 end
    279 
Note: See TracChangeset for help on using the changeset viewer.