From f71a7a97bb618e1d26fdce36ceedf05d93a9fdc2 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 13 Nov 2017 14:14:22 -0800 Subject: [PATCH] disable timeout for testing whether bulk update request has been approved --- app/helpers/bulk_update_requests_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/bulk_update_requests_helper.rb b/app/helpers/bulk_update_requests_helper.rb index fb81e1bd5..f4639125a 100644 --- a/app/helpers/bulk_update_requests_helper.rb +++ b/app/helpers/bulk_update_requests_helper.rb @@ -16,13 +16,14 @@ module BulkUpdateRequestsHelper TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists? when :mass_update - Post.without_timeout do - !Post.raw_tag_match(antecedent).exists? - end + !Post.raw_tag_match(antecedent).exists? else false end + + rescue PG::QueryCanceled + false end def failed?(command, antecedent, consequent)