Last active
February 16, 2024 04:36
-
-
Save hahwul/5896557a460fc7ec3656635cae9e9e3d to your computer and use it in GitHub Desktop.
solid_queue tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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