def init_taskd_proxy(config : dict) -> bool:

Description

Initializes TaskD Proxy. This API is called in user code.

Input Parameters

Table 1 Input parameters

Parameter

Type

Description

config

dict:{str : str}

TaskD Proxy information, including the TaskD Proxy and network configurations.

  • ListenAddr: IP address listened by TaskD Proxy
  • ListenPort: listening port of TaskD Proxy
  • UpstreamAddr: upstream network IP address
  • UpstreamPort: upstream network port
  • ServerRank: rank ID of TaskD Proxy

Return Value

Table 2 Return value description

Type

Description

Bool

Whether initialization is successful.

  • True: succeeded
  • False: failed