Quanlse/QTask.py
def _fetchResult(token, taskId):
    """
    Fetch the result files from the taskId
    """

    params = {"token": token, "taskId": taskId}

    ret = invokeBackend("task/getTaskInfo", params)

    result = ret["result"]

    originUrl = result["originUrl"]
    # originSize = result["originSize"]
    try:
        originFile, downSize = _downloadToFile(originUrl, os.path.join(outputPath, f"remote.{taskId}.origin.json"))
    except Exception:
        # TODO split the disk write error
        raise Error.NetworkError(traceback.format_exc())
    if outputInfo:
        print(f"Result downloaded successfully {originFile} size = {downSize}")

    return originFile

    Fetch the result files from the taskId
    
Fetch the result files from the taskId
Fetch the result files from the taskId
def _fetchResult(token, taskId):
    params = {"token": token, "taskId": taskId}
    ret = invokeBackend("task/getTaskInfo", params)
    result = ret["result"]
    originUrl = result["originUrl"]
    try:
        originFile, downSize = _downloadToFile(originUrl, os.path.join(outputPath, f"remote.{taskId}.origin.json"))
    except Exception:
        raise Error.NetworkError(traceback.format_exc())
    if outputInfo:
        print(f"Result downloaded successfully {originFile} size = {downSize}")
    return originFile
def _fetchResult ( token , taskId ) : params = { "token" : token , "taskId" : taskId } ret = invokeBackend ( "task/getTaskInfo" , params ) result = ret [ "result" ] originUrl = result [ "originUrl" ] try : originFile , downSize = _downloadToFile ( originUrl , os . path . join ( outputPath , f"remote.{taskId}.origin.json" ) ) except Exception : raise Error . NetworkError ( traceback . format_exc ( ) ) if outputInfo : print ( f"Result downloaded successfully {originFile} size = {downSize}" ) return originFile
Fetch the result files from the taskId
Fetch the result files from the taskId
"""
    Fetch the result files from the taskId
    """ # originSize = result["originSize"] # TODO split the disk write error
token
taskId