def register_task(self, name, task):
if not self._is_valid_task(task):<EOL><INDENT>raise InvalidTaskTypeError(type(task))<EOL><DEDENT>self._tasks[name] = task<EOL>msg = '<STR_LIT>'.format(task_name=name)<EOL>logging.debug(msg)<EOL>
:param name:
:param task:
:return: