Work queue writers
Whenever the writer thread awakes or starts on demand, it checks the work queue table for any work items that remain from a prior batch. The specific configuration of each work queue determines how the work queue creates and processes work items.
The following workflow examples provides a simple description of how PolicyCenter work queues operate.
Work items remaining
If work items remain from a previous batch, the following sequence of events occur:
- The writer thread notifies the workers that they have work to process.
- PolicyCenter terminates the writer thread.
No work items remaining
If no work items remain from a previous batch, the following sequence of events occurs:
- The writer thread selects items for a new batch.
- The writer writes the identifiers of the selected items to the work queue table.
- The writer notifies the workers that they have work to process.
- PolicyCenter terminates the writer thread.
