5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 04:34:16 +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 DeployException < StandardError; end
discard_on ActiveRecord::RecordNotFound
# rubocop:disable Metrics/MethodLength
def perform(site, notify = true, time = Time.now)
ActiveRecord::Base.connection_pool.with_connection do