mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 19:16:21 +00:00
fix: no pedir el tamaño si falló la compilación
This commit is contained in:
parent
e5f96c435d
commit
3de6f14e63
1 changed files with 3 additions and 1 deletions
|
@ -38,9 +38,11 @@ class DeployJob < ApplicationJob
|
||||||
|
|
||||||
status = d.deploy
|
status = d.deploy
|
||||||
seconds = d.build_stats.last.try(:seconds)
|
seconds = d.build_stats.last.try(:seconds)
|
||||||
|
size = d.size
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
status = false
|
status = false
|
||||||
seconds = 0
|
seconds = 0
|
||||||
|
size = 0
|
||||||
|
|
||||||
notify_exception e, d
|
notify_exception e, d
|
||||||
end
|
end
|
||||||
|
@ -48,7 +50,7 @@ class DeployJob < ApplicationJob
|
||||||
@deployed[d.type.underscore.to_sym] = {
|
@deployed[d.type.underscore.to_sym] = {
|
||||||
status: status,
|
status: status,
|
||||||
seconds: seconds || 0,
|
seconds: seconds || 0,
|
||||||
size: d.size,
|
size: size,
|
||||||
urls: d.respond_to?(:urls) ? d.urls : [d.url].compact
|
urls: d.respond_to?(:urls) ? d.urls : [d.url].compact
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue