HomePhorge
Diffusion kolab c79f23ad1cec

Minimize number of User/UpdateJob's

Description

Minimize number of User/UpdateJob's

Summary:
Use two Laravel features:

  • Dispatch all jobs at the end of transaction (after commit)
  • Make User/UpdateJob unique in the queue, i.e. there will be no new jobs added to the queue for specific user if there's another job in there already (unless it's older than 60 seconds). It will limit how often we connect to IMAP/LDAP.

Test Plan: ./phpunit

Reviewers: #hkccp_developers, mollekopf

Reviewed By: #hkccp_developers, mollekopf

Subscribers: #hkccp_developers

Differential Revision: https://git.kolab.org/D4610

Details

Provenance
machniakAuthored on Dec 27 2023, 12:13 PM
machniakPushed on Dec 27 2023, 12:34 PM
Reviewer
Restricted Project
Differential Revision
D4610: Minimize number of User/UpdateJob's
Parents
rK5ab39e230482: Move SKU-specific events from EntitlementObserver to Handlers, cleanup useless…
Branches
Unknown
Tags
Unknown
Build Status
Buildable 46226