Skip to content

Commit

Permalink
Fix duplication of notification
Browse files Browse the repository at this point in the history
  • Loading branch information
takonomura committed Jan 23, 2018
1 parent 3ddf3d4 commit 370977b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/autoload/kuroko2/workflow/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def process_next(node, token)
Notifier.notify(:back_to_normal, token.job_instance) if token.context['RETRYING']
unless token.parent
token.job_instance.touch(:finished_at)
Notifier.notify(:finished, token.job_instance)
Notifier.notify(:finished, token.job_instance) unless token.context['RETRYING'] && token.job_definition.notify_back_to_normal?
token.destroy!
end
end
Expand Down

0 comments on commit 370977b

Please sign in to comment.