Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: add enqueue key with delay #15

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

thedadams
Copy link
Contributor

If a user uses resp.RetryAfter in a handler, the object's key is enqueued
without the trigger designation. That means, that all triggers for the object
will be invoked regardless of whether the object changes when it goes through
the handlers. This is not the desired behavior. If the object doesn't change,
then the triggers should not be invoked.

This change adds an EnqueueKeyWithDelay function that achieves this desired
behavior.

If a user uses resp.RetryAfter in a handler, the object's key is enqueued
without the trigger designation. That means, that all triggers for the object
will be invoked regardless of whether the object changes when it goes through
the handlers. This is not the desired behavior. If the object doesn't change,
then the triggers should not be invoked.

This change adds an EnqueueKeyWithDelay function that achieves this desired
behavior.

Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams force-pushed the enqueue-key-with-delay branch from b062d9e to 6f19204 Compare February 27, 2025 22:36
@thedadams thedadams merged commit c8ac47e into obot-platform:main Feb 27, 2025
1 check passed
@thedadams thedadams deleted the enqueue-key-with-delay branch February 27, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants