Add `delay` parameter in Gitlab::EventStore
What does this MR do and why?
Related to gitlab-com/gl-infra/production#16348 (comment 1555172055)
Introduce delay
param for delayed dispatching
of events using Gitlab::EventStore
. This translates into EventStore calling
perform_in
instead of perform_async
.
This feature is useful as corrective action on gitlab-com/gl-infra/production#16348 (comment 1555172055) but also good for when refactoring existing perform_in
usages of direct scheduling to use the event-driven approach with Gitlab::EventStore
.
If we want to retain the delay we can now simply use delay: <integer>
parameter.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.