E
E
endenwer2015-01-23 13:25:11
Ruby on Rails
endenwer, 2015-01-23 13:25:11

How to implement background execution of user tasks in RoR?

There is a site X that needs to be automated. It is necessary to send requests every 100 seconds to site X and, depending on the response, perform the necessary actions. How can this be implemented on RoR.
A little more about the function of the automation service:
The user adds his profile on site X. Then he specifies the necessary actions that need to be automated on site X. Next, selects the time after which requests will be sent to site X. Press start and work begins. Then he can close the tab and work will continue. Those. it is necessary that its task was launched with the specified periodicity.
With what can this be done? Of course, it is possible that the user does not close the page and it sends requests at a given interval, but the task is precisely that the page can be closed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Vsk, 2015-01-23
@endenwer

resque, sidekiq, delayed_job
+
whenever, clockwork

B
Boober, 2015-01-23
@Boober

Yes, create a regular Thread and let's go)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question