Is there a way to list Sucker Punch jobs on queue from rails console?

1.7k Views Asked by At

In DelayedJob we can use Delayed::Job.all on console to list all jobs on queue. Is there a way to do the same using SuckerPunch gem?

2

There are 2 best solutions below

0
Justin On BEST ANSWER

With SuckerPunch everything runs in-process, so there is no external job queue backed by a database or other data store that can be queried from a separate process.

The only way I can think of to achieve what you want is to attach to the running Ruby process via a debug session and examine memory to dump out the information you want.

Based on my knowledge of SuckerPunch, if examining the jobs from the console or other process is a feature you need, you will have to switch to some other background job framework.

1
R. V. On

To get some info regarding queues you can also use SuckerPunch::Queue.stats or SuckerPunch::Queue.all from rails console.