We encounter an issue where the record queue producer will not be completed in case a failure occurs in the loop. We clear the queue, but sometimes the record queue producer will not receive status 'signalComplete'.
If you want to explicitly end the RQP (Record queue producer) loop based on some condition , you need to set a variable to tell the RQP to exit the loop.
The variable is “ Service.queueName.queueProcessorStatus”, and the value will be “queueProcessorStop”. Please find the attached screenshot.
Setting this variable will end the RQP loop.