0

Does anyone know how I'd go about either preventing certain jobs from being added to the queue, or, if that isn't possible, deleting jobs given a certain criteria?

The context is that I have a site where lots of users are added every hour, along with lots of Verbb Wishlist items, each of which trigger a search index update job which definitely aren't needed, and if there are too many it can overwhelm the server resources (this is despite my jobs being processed async via a worker).

I want to be able to prevent these from being created, or periodically wipe the queue table of these jobs before they're processed.

I had hoped to be able to run a simple SQL query to delete the non-needed jobs, but since the details of the job is serialised in a blob I can't simply query the jobs I need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.