Esempio n. 1
0
 def __init__(self):
     super().__init__()
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.driver_api = driverapi.API()
     self.search_options = [
         'name', 'vendor', 'model', 'status', 'serial_number'
     ]
Esempio n. 2
0
 def __init__(self, ctx, task_id, storage_id, args, interval):
     self.ctx = ctx
     self.task_id = task_id
     self.storage_id = storage_id
     self.args = args
     self.interval = interval
     self.task_rpcapi = task_rpcapi.TaskAPI()
Esempio n. 3
0
 def __init__(self, ctx, task_id, storage_id, args, interval):
     # create an object of periodic task scheduler
     self.ctx = ctx
     self.task_id = task_id
     self.storage_id = storage_id
     self.args = args
     self.interval = interval
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.scheduler = schedule_manager.SchedulerManager().get_scheduler()
     self.stopped = False
     self.job_ids = set()
 def __init__(self, ctx, failed_task_id, storage_id, args, job_id,
              retry_count, start_time, end_time):
     self.ctx = ctx
     self.failed_task_id = failed_task_id
     self.retry_count = retry_count
     self.storage_id = storage_id
     self.job_id = job_id
     self.args = args
     self.start_time = start_time
     self.end_time = end_time
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.scheduler_instance = scheduler.Scheduler.get_instance()
     self.result = TelemetryJobStatus.FAILED_JOB_STATUS_INIT
Esempio n. 5
0
 def __init__(self):
     super().__init__()
     self.task_rpcapi = task_rpcapi.TaskAPI()
     self.driver_manager = driver_manager.API()
Esempio n. 6
0
 def __init__(self):
     super().__init__()
     self.task_rpcapi = task_rpcapi.TaskAPI()
Esempio n. 7
0
 def __init__(self):
     self.driver_manager = driver_manager.API()
     self.exporter_manager = base_exporter.AlertExporterManager()
     self.task_rpcapi = rpcapi.TaskAPI()