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

feat: add custom unique key option #505

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

22dm
Copy link

@22dm 22dm commented Jun 24, 2022

When Enqueue Unique Task, allow the user to customize the UniqueKey instead of using Task Payload by default, because the payload may contain things like trace IDs from upstream, and in some scenarios these tasks should still be considered the same task despite the differences in these fields.

The reason for not using task ID is that TTL is needed to avoid some workers quitting abnormally, making it impossible to continue the task.

@kamikazechaser
Copy link
Collaborator

@22dm Is this a feature that you are still willing to support?

@22dm
Copy link
Author

22dm commented Nov 20, 2024

Yes, although the projects I'm working on don't use this package now, and it has been so long that I don't remember the specific details, I still think it's a useful feature.

I have resolved the conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants