5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-09-21 03:22:05 +00:00

fix: no intentar notificar si no hay sitio

closes #12753
This commit is contained in:
f 2023-03-23 18:02:43 -03:00
parent 66df2a971c
commit 655edf59e1

View file

@ -67,13 +67,15 @@ class DeployJob < ApplicationJob
rescue DeployTimedOutException => e rescue DeployTimedOutException => e
notify_exception e notify_exception e
ensure ensure
@site&.update status: 'waiting' if @site.present?
@site.update status: 'waiting'
notify_usuaries if notify notify_usuaries if notify
puts "\a" if @output puts "\a" if @output
end end
end end
end
# rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/MethodLength
private private