1 year ago

Delete Job by ID from Laravel Horizon Redis Queue

Posted 1 year ago by thechrise

I'm using the Redis queue and Horizon to archive a user's website when their subscription ends, and then in 6 months delete the website. I create both of these jobs in Redis and save their job id so that I can reference them for later.

Let's say the users resubscribes before the 6 months are up. I have a listener in place to check for the delete and archive job ids. How would I go about accessing and deleting these jobs in the Redis queue?

Please sign in or create an account to participate in this conversation.