def __init__(self, backup_sweeper, sweep_queue):
     ScheduleRunner.__init__(self, schedule=SWEEP_WORKER_SCHEDULE)
     self._backup_sweeper = backup_sweeper
     self._sweep_queue = sweep_queue
     self._total_processed = 0
     self._total_deleted = 0
     self._total_errored = 0
    def __init__(self, schedule=None):
        schedule = schedule or DEFAULT_EXP_SCHEDULE
        ScheduleRunner.__init__(self, schedule=schedule)
        self._test_mode = False
        self._retention_request_queue = Queue.Queue()
        self._retention_request_worker = BackupRetentionRequestWorker(
            self, self._retention_request_queue)

        self._expire_canceled_delay_in_seconds = DEFAULT_EXP_CANCELED_DELAY
    def __init__(self, schedule=None):
        schedule = schedule or DEFAULT_SWEEP_SCHEDULE
        ScheduleRunner.__init__(self, schedule=schedule)
        self._test_mode = False
        self._delete_delay_in_seconds = DEFAULT_DELETE_DELAY_IN_SECONDS
        self._sweep_workers = None
        self._sweep_queue = Queue.Queue()

        # cycle stats

        self._cycle_total_processed = 0
        self._cycle_total_deleted = 0
        self._cycle_total_errored = 0
Exemplo n.º 4
0
 def __init__(self, backup_system):
     self._backup_system = backup_system
     ScheduleRunner.__init__(self, schedule=Schedule(frequency_in_seconds=5*60))
     self._alerting_on_past_due = False
Exemplo n.º 5
0
 def __init__(self, backup_system):
     self._backup_system = backup_system
     ScheduleRunner.__init__(self, schedule=Schedule(frequency_in_seconds=10))
     self._plans_queue = Queue.Queue()
     self._plan_workers = None
Exemplo n.º 6
0
 def __init__(self, scheduler, plan_queue):
     ScheduleRunner.__init__(self, schedule=PLAN_WORKER_SCHEDULE)
     self._scheduler = scheduler
     self._plan_queue = plan_queue
 def __init__(self, expiration_manager, queue):
     ScheduleRunner.__init__(self, schedule=RETENTION_WORKER_SCHEDULE)
     self._expiration_manager = expiration_manager
     self._queue = queue
Exemplo n.º 8
0
 def __init__(self):
     schedule = DEFAULT_GEN_SCHEDULE
     ScheduleRunner.__init__(self, schedule=schedule)
     self._backup_system = None
Exemplo n.º 9
0
 def __init__(self):
     schedule = DEFAULT_GEN_SCHEDULE
     ScheduleRunner.__init__(self, schedule=schedule)
     self._backup_system = None
Exemplo n.º 10
0
 def __init__(self, backup_system):
     self._backup_system = backup_system
     ScheduleRunner.__init__(self,
                             schedule=Schedule(frequency_in_seconds=10))
     self._plans_queue = Queue.Queue()
     self._plan_workers = None
Exemplo n.º 11
0
 def __init__(self, scheduler, plan_queue):
     ScheduleRunner.__init__(self, schedule=PLAN_WORKER_SCHEDULE)
     self._scheduler = scheduler
     self._plan_queue = plan_queue