M
M
Maxim Valerievich2015-05-21 00:41:11
Ruby on Rails
Maxim Valerievich, 2015-05-21 00:41:11

How to set a task on rails + sidekiq so that they are executed via def. time since the last one?

Hello. You need to make a bunch of requests to vk.api and you need something not to ban the server. How it is possible to make so that the installed task was executed through a period of time after the previous one? I came up with only one idea, through sidekiq.api to request the time of the last task and set a new task based on this variable.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_ _, 2015-05-21
@AMar4enko

And you can re-add it at the end of the task.

V
Viktor Vsk, 2015-05-21
@viktorvsk

Development steps:
whenever -> resque scheduler (optional) -> clockwork

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question