mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 04:16: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
|
||||
self.priority = 10
|
||||
|
||||
def handle_error(error)
|
||||
case error
|
||||
when DeployAlreadyRunningException then retry_in 1.minute
|
||||
when DeployTimedOutException then expire
|
||||
else super
|
||||
end
|
||||
end
|
||||
retry_on DeployAlreadyRunningException, wait: 1.minute
|
||||
discard_on DeployTimedOutException
|
||||
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def perform(site, notify: true, time: Time.now, output: false)
|
||||
|
|
Loading…
Reference in a new issue