P
P
pup_pupets2014-08-21 08:16:21
Ruby on Rails
pup_pupets, 2014-08-21 08:16:21

How to tell sidekiq to send requests every 2 seconds?

I'm not very familiar with Sidekiq yet, so the question might be confusing.
The thing is that there is my server, and there is server N, on which I want to check the existence of a file every 2 seconds. 2 seconds - this is because the server owners themselves gave such a condition. I also have a Worker that actually climbs to that server and checks what is there and how.
But I don’t understand a little, how can I make the Worker make requests every 2 seconds? Make another Worker, to whom to give a bunch of schedules to launch another Worker, or what?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_ _, 2014-08-21
@AMar4enko

https://github.com/moove-it/sidekiq-scheduler

F
FanKiLL, 2014-08-21
@FanKiLL

https://github.com/javan/whenever/tree/master
Here's how to use it with sidekiq
Or google it this way, whenever makes cron very handy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question