5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 16:06:22 +00:00

fix: no pedir el tamaño si falló la compilación

This commit is contained in:
f 2023-03-18 13:47:34 -03:00
parent 57719c8f44
commit 1059ab5501

View file

@ -34,9 +34,11 @@ class DeployJob < ApplicationJob
status = d.deploy
seconds = d.build_stats.last.try(:seconds)
size = d.size
rescue StandardError => e
status = false
seconds = 0
size = 0
notify_exception e, d
end
@ -44,7 +46,7 @@ class DeployJob < ApplicationJob
@deployed[d.type.underscore.to_sym] = {
status: status,
seconds: seconds || 0,
size: d.size,
size: size,
urls: d.respond_to?(:urls) ? d.urls : [d.url].compact
}
end