I disabled the job events and did the job cleanup in the queue events.
When there are same queue events listeners running in multiple processes, every process will try to do the job cleanup. For one process, it runs successfully. For other it fails.
job cleanup is just an example. If I do other cleanup tasks in queue events listener. those are duplicated.
Is there any solution/workaround to this problem?
I disabled the job events and did the job cleanup in the queue events. When there are same queue events listeners running in multiple processes, every process will try to do the job cleanup. For one process, it runs successfully. For other it fails. job cleanup is just an example. If I do other cleanup tasks in queue events listener. those are duplicated. Is there any solution/workaround to this problem?