5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 23:46:22 +00:00

fix: reintentar compilaciones

This commit is contained in:
f 2024-04-09 14:16:27 -03:00
parent 94d7b32ce6
commit 6dbc8fa0c1
No known key found for this signature in database

View file

@ -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)