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:
commit
054a42ca20
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue