diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-04-26 18:56:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 18:56:45 +0200 |
commit | f78cbc0c32d5fc648c92b5e1de02105d6a8594c0 (patch) | |
tree | 4c72ada142e656338ff449c96a2767c593e10413 /app/workers | |
parent | c4deca6a217978c6ff4f86d3f1baf0ac5d65f3fe (diff) |
Fix thread resolve worker retrying when status no longer exists (#16109)
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/thread_resolve_worker.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/workers/thread_resolve_worker.rb b/app/workers/thread_resolve_worker.rb index 8bba9ca75..1b77dfdd9 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 |