mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 23:46:22 +00:00
fix: reintentar compilaciones
This commit is contained in:
parent
94d7b32ce6
commit
6dbc8fa0c1
1 changed files with 2 additions and 7 deletions
|
@ -11,13 +11,8 @@ class DeployJob < ApplicationJob
|
||||||
# Lanzar lo antes posible
|
# Lanzar lo antes posible
|
||||||
self.priority = 10
|
self.priority = 10
|
||||||
|
|
||||||
def handle_error(error)
|
retry_on DeployAlreadyRunningException, wait: 1.minute
|
||||||
case error
|
discard_on DeployTimedOutException
|
||||||
when DeployAlreadyRunningException then retry_in 1.minute
|
|
||||||
when DeployTimedOutException then expire
|
|
||||||
else super
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# rubocop:disable Metrics/MethodLength
|
# rubocop:disable Metrics/MethodLength
|
||||||
def perform(site, notify: true, time: Time.now, output: false)
|
def perform(site, notify: true, time: Time.now, output: false)
|
||||||
|
|
Loading…
Reference in a new issue