mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 22:51:41 +00:00
fix: llegar hasta el final aunque fallen algunos metodos
al usar ensure en el commit anterior, podemos garantizar que cualquier excepción en otros deploys no deja la compilación en estado de compilación permanente, pero no se notifica a les usuaries.
This commit is contained in:
parent
955786be0e
commit
1d08b3fdcd
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ class DeployJob < ApplicationJob
|
|||
def deploy_others
|
||||
@site.deploys.where.not(type: 'DeployLocal').find_each do |d|
|
||||
@deployed[d.type.underscore.to_sym] = d.deploy
|
||||
rescue StandardError => e
|
||||
@deployed[d.type.underscore.to_sym] = false
|
||||
|
||||
ExceptionNotifier.notify_exception(e, data: { site: site.id, deploy: d.type })
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue