Skip to content

Instantly share code, notes, and snippets.

@hahwul
Last active February 16, 2024 04:36
Show Gist options
  • Save hahwul/5896557a460fc7ec3656635cae9e9e3d to your computer and use it in GitHub Desktop.
Save hahwul/5896557a460fc7ec3656635cae9e9e3d to your computer and use it in GitHub Desktop.
solid_queue tips
# Get all workers
SolidQueue::Process.all
# Get Pause and Ready Job
SolidQueue::Pause.all.pluck(:queue_name)
SolidQueue::ReadyExecution.where("queue_name LIKE ?", "dc_development_%").distinct(:queue_name).pluck(:queue_name)
# Get Failed Job
SolidQueue::FailedExecution.all
SolidQueue::FailedExecution.count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment