Scheduler

class dias.Scheduler(config)

Bases: object

dias Scheduler.

Puts tasks in a queue and runs them one by one when told. Also calls finish method of tasks.

Methods

finish_tasks() Finish all tasks.
next_task() Get the next scheduled task.
start([pidfile]) Start the scheduler main loop.

Construct the dias scheduler.

Parameters:config (dict) – dias configuration. Expected to contain the log_level and prometheus_client_port.

Methods

finish_tasks() Finish all tasks.
next_task() Get the next scheduled task.
start([pidfile]) Start the scheduler main loop.

Methods Summary

finish_tasks() Finish all tasks.
next_task() Get the next scheduled task.
start([pidfile]) Start the scheduler main loop.

Methods Documentation

finish_tasks()

Finish all tasks.

Calls the finish method of the analyzers of each task.

next_task()

Get the next scheduled task.

Returns:Task – The next task in the queue.
start(pidfile=None)

Start the scheduler main loop.

This is the entry point for the scheduler main loop.

Parameters:pidfile (None) – TODO: Not implemented.