noc.main.models.crontab

Module Contents

class noc.main.models.crontab.CronTab

Bases: mongoengine.document.Document

meta
name
is_active
description
handler
seconds_expr
minutes_expr
hours_expr
days_expr
months_expr
weekdays_expr
years_expr
SCHEDULER = scheduler
JCLS = noc.services.scheduler.jobs.cron.CronJob
crontab_expression

Returns crontab expression :return:

__str__(self)
clean(self)
get_entry(self)

Crontab Entry :return:

get_next(self)

Get next run :return: Next datetime or None

get_handler(self)

Get callable from handler :return:

run(self)

Called by scheduler job :return:

classmethod get_scheduler(cls)
on_save(self)
on_delete(self)
ensure_job(self)

Create or remove scheduler job :return: