Closed jorgemarsal closed 2 years ago
I've seen deadlocks from maintenance operations before, but only when the job table is very large or the maintenance intervals are set to run too often. Can you include your configuration properties and an approx record count in pgboss.job?
Thank you for the quick response @timgit !
Counts:
select count(*) from pgboss.job j ;
-- 15119
select count(*) from pgboss.archive a ;
-- 60478
Config:
expireIn: 5 minutes
team size: 1
team concurrency: 1
retryLimit: 1
newJobCheckIntervalSeconds: 1
expireCheckIntervalSeconds: 1
Let me know if you need any other information.
What version of pg-boss are you running? There is no expireCheckIntervalSeconds
config property in the latest version
I was running an old version. I upgraded to the latest 6.2.2
. I'll keep an eye to see if the errors are gone and report back. Thanks @timgit !
I'm seeing these deadlock errors on the Postgres logs (version 10.17, AWS RDS):