weboob.core.scheduler

class weboob.core.scheduler.Scheduler

Bases: weboob.core.scheduler.IScheduler

Scheduler using Python’s threading.

cancel(ev)

Cancel an event

Parameters:ev – the event identificator
repeat(interval, function, *args)

Repeat a call to a function

Parameters:
  • interval (int) – interval between two calls
  • function (callable) – function to call
  • args – arguments to give to function
Returns:

an event identificator

run()

Run the scheduler loop

schedule(interval, function, *args)

Schedule an event.

Parameters:
  • interval (int) – delay before calling the function
  • function (callabale) – function to call
  • args – arguments to give to function
Returns:

an event identificator

want_stop()

Plan to stop the scheduler.