def __init__(self, project_id=None, **kwargs): super(DeleteProjectTask, self).__init__(**kwargs) self.project_id = project_id if not kwargs.get('data', None): self.data = {} self.msg_logger = task_manager.get_message_logger(self) self.progress_logger = task_manager.get_progress_logger(self)
def __init__(self, input_path=None, ingest_kwargs={}, **kwargs): super(CreateProjectTask, self).__init__(**kwargs) if not kwargs.get("data", None): self.data = {} self.input_path = input_path self.ingest_kwargs = ingest_kwargs self.msg_logger = task_manager.get_message_logger(self) self.progress_logger = task_manager.get_progress_logger(self)