5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 05:04:16 +00:00

fix: agrupar por sitio y enviar el log

This commit is contained in:
f 2023-03-13 20:11:12 -03:00
parent a0263ad3fb
commit 6bac8ed65d

View file

@ -33,12 +33,14 @@ class DeployJob < ApplicationJob
# No es opcional
unless @deployed[:deploy_local][:status]
# Hacer fallar la tarea
raise DeployException, 'Falló la compilación'
raise DeployException, "#{@site.name}: Falló la compilación"
end
deploy_others
rescue DeployException => e
rescue DeployTimedOutException => e
notify_exception e
rescue DeployException => e
notify_exception e, deploy_local
ensure
@site&.update status: 'waiting'