freezer.scheduler.daemon module

class freezer.scheduler.daemon.Daemon(daemonizable=None, pid_fname=None)

Bases: object

A class to manage all the daemon-related stuff

exit_flag = False
static handle_program_exit(signum, frame)
static handle_reload(signum, frame)
instance = None
property pid
property pid_fname
reload()
restart()
property signal_map
start(dump_stack_trace=False)
status()
stop()
class freezer.scheduler.daemon.NoDaemon(daemonizable)

Bases: object

A class which shares the same interface as the Daemon class, but is used to execute the scheduler as a foreground process

exit_flag = False
static handle_program_exit(signum, frame)
static handle_reload(signum, frame)
instance = None
reload()
restart()
property signal_map
start(dump_stack_trace=False)
status()
stop()
freezer.scheduler.daemon.get_filenos(logger)

Get a list of file no from logger

freezer.scheduler.daemon.is_process_running(pid)

Checks whether the process is running.

Parameters

pid – process pid to check

Returns

true if the process is running