From f78cbc0c32d5fc648c92b5e1de02105d6a8594c0 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 26 Apr 2021 18:56:45 +0200 Subject: [PATCH] Fix thread resolve worker retrying when status no longer exists (#16109) --- app/workers/thread_resolve_worker.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/workers/thread_resolve_worker.rb b/app/workers/thread_resolve_worker.rb index 8bba9ca75e6..1b77dfdd932 100644 --- a/app/workers/thread_resolve_worker.rb +++ b/app/workers/thread_resolve_worker.rb @@ -14,5 +14,7 @@ class ThreadResolveWorker child_status.thread = parent_status child_status.save! + rescue ActiveRecord::RecordNotFound + true end end