The scheduler handles background tasks of the application. It is logically seperated by "modules" with each module holding tasks.
Currently implemented modules
are:
calls
Example:
interval: 20.2 # in seconds, Optional as Tasks have their own default values
wait_first: false # true(default) or false, Optional
Time in seconds after which the task is executed again.
Optional. Defaults to false
. If set to true
the task's first execution is
after seconds
, not immediately after startup.
The calls
module allows for scheduled, call relevant functions to be executed
regularly.
Currently supports the tasks:
build_queue
handle_queue
This task builds a queue of Users who have given the information that they wanted to be called at the current time.
This task checks the queue created by build_queue
and makes a single phone
call to the first user in the queue.