|
|
|
|
|
by sa46
188 days ago
|
|
Advisory locks aren’t all sunshine and rainbows. They can only be unlocked by the Postgres connection that acquired the lock. That means you need to track the connection, typically by dedicating a connection to the job that needs locking. Here’s a good issue describing the tradeoffs between a lock table and advisory locks. https://github.com/bensheldon/good_job/discussions/831 |
|