Skip to content

Commit

Permalink
rescue exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hs-arodrigues committed Mar 28, 2024
1 parent c6054dd commit 52b0c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/que/job_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _run(args: nil, kwargs: nil, reraise_errors: false)
message: 'Run completed',
)
default_resolve_action if que_target && !que_target.que_resolved
rescue => error
rescue Exception => error
Que.log(
level: :info,
event: :special_job_errored,
Expand Down
2 changes: 1 addition & 1 deletion lib/que/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(
Thread.current.abort_on_exception = true
start_callback.call(self) if start_callback.respond_to?(:call)
work_loop
rescue => error
rescue Exception => error
Que.log(
level: :info,
event: :worker_crashed,
Expand Down

0 comments on commit 52b0c5e

Please sign in to comment.