def METHOD_NAME(self, task, context):
    """Submit task.
    Args:
        task (Task): task object
        Fields:
            task_id: The task id
            arguments: The task command
            workers: The requested resource unit number
            status: The status of the task: pending/running/done
            result: The result of the task, which is only value-assigned when the task is done
    Returns:
        json: status , id of task and messages.
    """
    # Process the task
    logger.info("Submit task to task db")
    db_path = get_db_path(config.workspace)
    logger.info(db_path)
    result = submit_task_to_db(task=task, task_submitter=task_submitter, db_path=get_db_path(config.workspace))
    # Return a response
    response = neural_solution_pb2.TaskResponse(**result)  # pylint: disable=no-member
    return response