Skip to content

WIP: Use PostgreSQL listen/notify when assigning leases

Adam Coldrick requested to merge sotk/listen-notify-queue into master

Description

This MR replaces the current polling mechanism used when workers are waiting for work when long-polling with listening for PostgreSQL notifications. The notifications are sent when a job moves into the QUEUED operation stage. The lack of polling should reduce load on the database server.

The polling behaviour is retained for use with other database backends.

Edited by Adam Coldrick

Merge request reports