Skip to content

Commit

Permalink
Log after the run is complete
Browse files Browse the repository at this point in the history
  • Loading branch information
hs-arodrigues committed Mar 28, 2024
1 parent a7d5a9f commit ee11a53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/que/job_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ def _run(args: nil, kwargs: nil, reraise_errors: false)
args: args,
kwargs: kwargs,
)

run(*args, **kwargs)
Que.log(
level: :info,
event: :run_completed,
job_id: que_target.que_attrs[:id],
message: 'Run completed',
)
default_resolve_action if que_target && !que_target.que_resolved
rescue => error
Que.log(
Expand Down

0 comments on commit ee11a53

Please sign in to comment.