mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 13:31:42 +00:00
descartar el deploy si el sitio no existe
This commit is contained in:
parent
d18293bea3
commit
6ce0cb2c41
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue