Project

General

Profile

Actions

Bug #22839

closed

Planning during delayed jobs and hooks don't clean ActiveRecord connection

Added by Ivan Necas about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Dynflow
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This can potentially lead to

2018-03-09T03:30:49  [background] [E] could not obtain a connection from the pool within 5.000 seconds (waited 5.003 seconds); all pooled connections were in use (ActiveRecord::ConnectionTimeoutError)

It's not confirmed, that this actually is causing issues (due to its intermittent nature), but we should
be more defensive every time we execute code inside our runtime, that could cause blocking of connection
from ActiveRecord's connection pool

Actions

Also available in: Atom PDF