Page MenuHomePhorge

Minimize number of User/UpdateJob's
ClosedPublic

Authored by machniak on Dec 22 2023, 2:04 PM.
Tags
None
Referenced Files
F12009768: D4610.diff
Sat, May 4, 10:40 PM
Unknown Object (File)
Sun, Apr 28, 11:55 AM
Unknown Object (File)
Sun, Apr 28, 2:02 AM
Unknown Object (File)
Wed, Apr 17, 11:08 AM
Unknown Object (File)
Wed, Apr 17, 11:08 AM
Unknown Object (File)
Wed, Apr 17, 11:08 AM
Unknown Object (File)
Mon, Apr 15, 10:35 AM
Unknown Object (File)
Mon, Apr 15, 4:32 AM
Subscribers
Restricted Project

Details

Reviewers
mollekopf
Group Reviewers
Restricted Project
Commits
rKc79f23ad1cec: 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

Diff Detail

Repository
rK kolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

machniak created this revision.
This revision is now accepted and ready to land.Dec 26 2023, 9:02 AM
This revision was automatically updated to reflect the committed changes.