0

I need to make a function to be executed every n seconds. I have found a call_later method, but the problem is it executes only once:

self._connection.ioloop.call_later(self.timeout, self.callback)

How do I properly make a timeout function? Is there any way to use only pika ioloop methods for this?

Sergei Petrov
  • 93
  • 1
  • 2
  • 10
  • Does this answer your question? [How do I get a Cron like scheduler in Python?](https://stackoverflow.com/questions/373335/how-do-i-get-a-cron-like-scheduler-in-python) – tomgalpin Jan 17 '23 at 15:56
  • 1
    how about calling `call_later` from inside `callback` so that everytime it's called, you schedule another one for the future? – ACarter Jan 17 '23 at 15:57

0 Answers0