The page you navigated to does not exist, so we brought you to the closest page to it.
flytekit.extend.backend.connector_service
flytekit.extend.backend.connector_service
Class
Description
AsyncConnectorService
AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously.
ConnectorMetadataService
AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway.
SyncConnectorService
SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously.
Property
Type
Description
create_operation
str
delete_operation
str
do_operation
str
get_operation
str
metric_prefix
str
def record_connector_metrics (
func: typing. Callable,
)
Parameter
Type
Description
func
typing.Callable
AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously.
def CreateTask (
request: typing. Union[flyteidl. admin. agent_pb2. CreateTaskRequest, flyteidl. admin. agent_pb2. GetTaskRequest, flyteidl. admin. agent_pb2. DeleteTaskRequest],
context: grpc. ServicerContext,
args,
kwargs,
)
Parameter
Type
Description
request
typing.Union[flyteidl.admin.agent_pb2.CreateTaskRequest, flyteidl.admin.agent_pb2.GetTaskRequest, flyteidl.admin.agent_pb2.DeleteTaskRequest]
context
grpc.ServicerContext
args
*args
kwargs
**kwargs
def DeleteTask (
request: typing. Union[flyteidl. admin. agent_pb2. CreateTaskRequest, flyteidl. admin. agent_pb2. GetTaskRequest, flyteidl. admin. agent_pb2. DeleteTaskRequest],
context: grpc. ServicerContext,
args,
kwargs,
)
Parameter
Type
Description
request
typing.Union[flyteidl.admin.agent_pb2.CreateTaskRequest, flyteidl.admin.agent_pb2.GetTaskRequest, flyteidl.admin.agent_pb2.DeleteTaskRequest]
context
grpc.ServicerContext
args
*args
kwargs
**kwargs
def GetTask (
request: typing. Union[flyteidl. admin. agent_pb2. CreateTaskRequest, flyteidl. admin. agent_pb2. GetTaskRequest, flyteidl. admin. agent_pb2. DeleteTaskRequest],
context: grpc. ServicerContext,
args,
kwargs,
)
Parameter
Type
Description
request
typing.Union[flyteidl.admin.agent_pb2.CreateTaskRequest, flyteidl.admin.agent_pb2.GetTaskRequest, flyteidl.admin.agent_pb2.DeleteTaskRequest]
context
grpc.ServicerContext
args
*args
kwargs
**kwargs
def GetTaskLogs (
request: flyteidl. admin. agent_pb2. GetTaskLogsRequest,
context: grpc. ServicerContext,
) -> flyteidl. admin. agent_pb2. GetTaskLogsResponse
GetTaskLogs returns task execution logs, if available.
Parameter
Type
Description
request
flyteidl.admin.agent_pb2.GetTaskLogsRequest
context
grpc.ServicerContext
def GetTaskMetrics (
request: flyteidl. admin. agent_pb2. GetTaskMetricsRequest,
context: grpc. ServicerContext,
) -> flyteidl. admin. agent_pb2. GetTaskMetricsResponse
GetTaskMetrics returns one or more task execution metrics, if available.
Errors include
OutOfRange if metrics are not available for the specified task time range
various other errors
Parameter
Type
Description
request
flyteidl.admin.agent_pb2.GetTaskMetricsRequest
context
grpc.ServicerContext
AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway.
This service allows propeller or users to get the metadata of agents.
def GetAgent (
request: flyteidl. admin. agent_pb2. GetAgentRequest,
context: grpc. ServicerContext,
) -> flyteidl. admin. agent_pb2. GetAgentResponse
Fetch a :ref:ref_flyteidl.admin.Agent definition.
Parameter
Type
Description
request
flyteidl.admin.agent_pb2.GetAgentRequest
context
grpc.ServicerContext
def ListAgents (
request: flyteidl. admin. agent_pb2. ListAgentsRequest,
context: grpc. ServicerContext,
) -> flyteidl. admin. agent_pb2. ListAgentsResponse
Fetch a list of :ref:ref_flyteidl.admin.Agent definitions.
Parameter
Type
Description
request
flyteidl.admin.agent_pb2.ListAgentsRequest
context
grpc.ServicerContext
SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously.
Method
Description
ExecuteTaskSync()
ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back.
def ExecuteTaskSync (
request_iterator: typing. AsyncIterator[flyteidl. admin. agent_pb2. ExecuteTaskSyncRequest],
context: grpc. ServicerContext,
) -> typing. AsyncIterator[flyteidl. admin. agent_pb2. ExecuteTaskSyncResponse]
ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back.
Parameter
Type
Description
request_iterator
typing.AsyncIterator[flyteidl.admin.agent_pb2.ExecuteTaskSyncRequest]
context
grpc.ServicerContext