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

descartar el deploy si el sitio no existe

This commit is contained in:
f 2022-04-05 16:25:47 -03:00
parent d18293bea3
commit 6ce0cb2c41

View file

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