Releasing Billing Events When Apex Flex Queue is Full
When a billing event is released and if the Apex Flex Queue is full, a BILL_QueueBillingJobCallable is created.
The BILL_QueueBillingJobCallable identifies and labels all the selected records for release as queued and checks the current status of the Flex Queue.
Depending on the values specified in the Flex Queue Threshold custom setting:
- If the Flex Queue contains fewer jobs than the Flex Queue Threshold custom setting, PSA initiates the release batch job.
- If the Flex Queue contains more jobs than the Flex Queue Threshold custom setting, the BILL_QueueBillingJobCallable monitors the Flex Queue at regular intervals, as specified in the Flex Queue Delay custom setting, until the job is queued.
The monitoring process is repeated up to the maximum number of retries specified in the Flex Queue Maximum Batch Retries field within the Billing Settings custom setting. For more information, see Billing Settings.
If the Flex Queue Threshold limit is reached and the billing job cannot be enqueued in the Apex Flex Queue, you will be notified that the process failed to release the billing events. We recommend that you reattempt to release the billing events.
SECTIONS