5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 09:21:42 +00:00

Merge branch 'cancelar-el-trabajo-si-el-sitio-no-existe' into rails

This commit is contained in:
f 2023-03-23 19:22:58 -03:00
commit 054a42ca20

View file

@ -5,6 +5,8 @@ class DeployJob < ApplicationJob
class DeployException < StandardError; end
class DeployTimedOutException < DeployException; end
discard_on ActiveRecord::RecordNotFound
# rubocop:disable Metrics/MethodLength
def perform(site, notify: true, time: Time.now, output: false)
@output = output