Skip to content

Commit

Permalink
Merge pull request #148 from bensheldon/notification_names
Browse files Browse the repository at this point in the history
Fix LogSubscriber notifications for finished_timer_task and finished_job_task
  • Loading branch information
bensheldon authored Sep 21, 2020
2 parents 3bde4a0 + 9446165 commit f57209e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/good_job/log_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def create(event)
end

# @macro notification_responder
def timer_task_finished(event)
# FIXME: This method does not match any good_job notifications.
def finished_timer_task(event)
exception = event.payload[:error]
return unless exception

Expand All @@ -36,8 +35,7 @@ def timer_task_finished(event)
end

# @macro notification_responder
def job_finished(event)
# FIXME: This method does not match any good_job notifications.
def finished_job_task(event)
exception = event.payload[:error]
return unless exception

Expand Down

0 comments on commit f57209e

Please sign in to comment.