(config, mode)
return _task
get task object from register
get task object from register
get task object from register
def task(config, mode):
  ''' get task object from register '''
  task_name = config['data']['task']["name"]
  logging.info("task == {}, mode == {}".format(task_name, mode))
  _task = registers.task[task_name](config, mode)
  return _task
def task ( config , mode ) : task_name = config [ 'data' ] [ 'task' ] [ "name" ] logging . info ( "task == {}, mode == {}" . format ( task_name , mode ) ) _task = registers . task [ task_name ] ( config , mode ) return _task