Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Ensure post_run_action happens even after build runner fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Liebowitz committed Apr 12, 2018
1 parent 2074b28 commit 2dfa1e8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/features/build_runner/build_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,14 @@ def start
else
# No work queue? Just call the block then
logger.debug("Not using a workqueue for build runner #{self.class}, this is probably a bug")
work_block.call
post_run_block.call

begin
work_block.call
rescue StandardError => ex
logger.error(ex)
ensure
post_run_block.call
end
end
end

Expand Down

0 comments on commit 2dfa1e8

Please sign in to comment.