Work queue workers
Typically, each work queues shares the standard
work item table (StandardWorkQueue)
for its work items. However, a worker task operates only on work items
that its associated writer inserts into the table. For example, suppose
that PolicyCenter distributes
the Activity Escalation work queue across a Guidewire cluster, with six
workers operating on three different servers. Those workers work only
on activity escalation items in the standard work item table. Typically,
you configure work queues for multiple workers. Thus, typically, some
number of workers operate throughout the day on work items in the standard
work queue table.
At specified intervals (defined through
the maxpollinterval attribute
on worker in work-queue.xml), a worker awakens
and checks the work item table for work items from its associated writer.
If a worker finds work items available for processing, the worker checks
out its quota from the work queue. For each item, the worker sets the
following attributes.
|
Set to The value of the
|
|
Set to the time at which the worker checks out the work item. |
|
Set to the worker. |
After it checks out a quota of work items,
the worker task processes them sequentially. Whenever a worker completes
a work item successfully, it deletes the item from the table and begins
to process the next item. The standard work item table (StandardWorkQueue) is retireable,
so successfully completed work items remain in the table for historical
reference.
