noc.commands.job

Module Contents

noc.commands.job.SHARDING_SCHEDULER
class noc.commands.job.Command

Bases: noc.core.management.base.BaseCommand

Manage Jobs

help = Manage Jobs
default_time
static valid_date(s)
static scheduler(s)
add_arguments(self, parser)
init_json(self)
init_csv(self)
format_json(self, job)
format_csv(self, job)
handle(self, cmd, *args, **options)
handle_list(self, scheduler, *args, **options)
handle_get(self, scheduler, *args, **options)
handle_set(self, scheduler, *args, **options)
handle_reschedule(self, scheduler, *args, **options)
static get_task_count()

Calculate discovery tasks :return:

static get_job_avg()

Calculate average time execute discovery job :return:

handle_estimate(self, device_count=None, box_interval=65400, periodic_interval=300, *args, **options)

Calculate Resource needed job :param device_count: Count active device :param box_interval: Box discovery interval :param periodic_interval: Periodic discovery interval :param :return: