Page MenuHomePhorge

Minimize number of User/UpdateJob's
ClosedPublic

Authored by machniak on Dec 22 2023, 2:04 PM.
Tags
None
Referenced Files
F12229419: D4610.diff
Sat, May 18, 1:27 PM
Unknown Object (File)
Fri, May 10, 4:51 PM
Unknown Object (File)
Wed, May 8, 7:25 PM
Unknown Object (File)
Mon, May 6, 1:47 AM
Unknown Object (File)
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)
Apr 17 2024, 11:08 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
Branch
dev/update-job-should-be-unique
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 46166
Build 17804: arc lint + arc unit

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.