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

prevent enqueuing same job, #198

Open
mcbenjemaa opened this issue Jun 22, 2023 · 3 comments
Open

prevent enqueuing same job, #198

mcbenjemaa opened this issue Jun 22, 2023 · 3 comments

Comments

@mcbenjemaa
Copy link

Any idea how to prevent enqueuing same job?

Maybe like if a job with same args exists More then 3 then we can prevent enqueuing it again?

@vgarvardt
Copy link
Owner

Same as in #197 - jobs do not know anything about other jobs unless you implement some additional functionality to track created jobs. This is simple queuing system focused on strong consistency.

@Insteadof
Copy link

I'm facing a similar problem where i don't want to enqueue certain jobs multiple times. My case would be solved if i have control over the generated id in the execEnqueue func, thinking about creating a PR for this...

@berkantay
Copy link

berkantay commented Aug 31, 2023

just an idea but i am tend to have a brainstorm here about this issue, could we generate the task id based on the other columns. like similar to sonyflake?

so that if an identical task in enqueued into the jobs gue can discard it automatically

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

No branches or pull requests

4 participants