We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d6b54 commit 59dcb48Copy full SHA for 59dcb48
app/models/solid_queue/job/executable.rb
@@ -17,6 +17,7 @@ module Executable
17
after_create :prepare_for_execution
18
19
scope :finished, -> { where.not(finished_at: nil) }
20
+ scope :failed, -> { includes(:failed_execution).where.not(failed_execution: {id: nil}) }
21
end
22
23
%w[ ready claimed failed scheduled ].each do |status|
0 commit comments