mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 08:46:21 +00:00
fix: agrupar por sitio y enviar el log
This commit is contained in:
parent
a0263ad3fb
commit
6bac8ed65d
1 changed files with 4 additions and 2 deletions
|
@ -33,12 +33,14 @@ class DeployJob < ApplicationJob
|
||||||
# No es opcional
|
# No es opcional
|
||||||
unless @deployed[:deploy_local][:status]
|
unless @deployed[:deploy_local][:status]
|
||||||
# Hacer fallar la tarea
|
# Hacer fallar la tarea
|
||||||
raise DeployException, 'Falló la compilación'
|
raise DeployException, "#{@site.name}: Falló la compilación"
|
||||||
end
|
end
|
||||||
|
|
||||||
deploy_others
|
deploy_others
|
||||||
rescue DeployException => e
|
rescue DeployTimedOutException => e
|
||||||
notify_exception e
|
notify_exception e
|
||||||
|
rescue DeployException => e
|
||||||
|
notify_exception e, deploy_local
|
||||||
ensure
|
ensure
|
||||||
@site&.update status: 'waiting'
|
@site&.update status: 'waiting'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue