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

Error when scheduling a delayed job with a difference of less than 1 second #286

Open
mdemblani opened this issue Jun 18, 2019 · 1 comment

Comments

@mdemblani
Copy link

The issue is a part of #284 which appears when we try to enqueue jobs with a difference of less than 1 second at a very high-rate. The exact issue happens since the enqueue methods convert the millisecond timestamp into seconds, thereby rounding off a large portion of the timestamp, which then means that conflicts appear if a similar job is scheduled before the first one is picked up by a worker.

@evantahler
Copy link
Member

#284 is marked as will not fix

I thought we could use this issue to suggest alternative resque patterns.

Perhaps a single job at each per-second timestamp could be enqueued to then process a bach of jobs it enqueues at that moment?

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

No branches or pull requests

2 participants