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

Does this work with enqueue_in ? #45

Open
jgarner opened this issue Nov 11, 2014 · 1 comment
Open

Does this work with enqueue_in ? #45

jgarner opened this issue Nov 11, 2014 · 1 comment

Comments

@jgarner
Copy link

jgarner commented Nov 11, 2014

Its seems like it might not? since jobs are getting created even though there are identical jobs enqueued to say run in 15minutes from now.

Thanks Josh

@rhymes
Copy link

rhymes commented Nov 8, 2016

@jgarner no it doesn't :(

[36] pry(main)> Timecop.freeze(Time.current) do
[36] pry(main)*   Resque.enqueue_at(1.minute.from_now, CounterCacheJob, Device.name, {a: 2})
[36] pry(main)*   Resque.enqueue_at(1.minute.from_now, CounterCacheJob, Device.name, {a: 2})
[36] pry(main)*   Resque.enqueue_at(1.minute.from_now, CounterCacheJob, Device.name, {a: 2})
[36] pry(main)* end
=> true

screen shot 2016-11-08 at 5 08 22 pm

I used Timecop.freeze to make sure they were scheduled with the same time "from now" to see if it worked.

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

2 participants