Skip to content

Decrease WebHooks::LogExecutionWorker retries

Stan Hu requested to merge sh-decrease-web-hook-log-retries into master

Since this worker can update the same row for a group or project, retrying can exacerbate locking in the database. PostgreSQL may create a MultiXactId as a side effect with each lock. If these IDs exceed the working memory of the simple LRU (SLRU) cache, database queries could get slow.

If we are unable to store the data after 3 tries then we're better off giving up and thereby reducing contention.

Relates to #340272 (closed)

Edited by Stan Hu

Merge request reports