How to use the crontab.CronTab.__init__ function in crontab

To help you get started, we’ve selected a few crontab examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LSIR / gsn / gsn / tools / backlog / python / SchedulePlugin.py View on Github external
def __init__(self, creation_time, user=None, fake_tab=None):
        CronTab.__init__(self, user, fake_tab)
        self._creation_time = creation_time
        for schedule in self.crons:
            self._scheduleSanityCheck(schedule)
github LSIR / gsn / gsn / tools / backlog / python / ScheduleHandler.py View on Github external
def __init__(self, creation_time, user=None, fake_tab=None):
        CronTab.__init__(self, user, fake_tab)
        self._schedule_string = fake_tab
        self._creation_time = creation_time
        self._schedules = []
        for schedule in self.crons:
            self._schedules.append(self._scheduleSanityCheck(schedule))
github LSIR / gsn / gsn / tools / backlog / python3 / ScheduleHandler.py View on Github external
def __init__(self, creation_time, user=None, fake_tab=None):
        CronTab.__init__(self, user, fake_tab)
        self._creation_time = creation_time
        for schedule in self.crons:
            self._scheduleSanityCheck(schedule)