blue-ice-67112
04/08/2024, 11:17 AMfailed to get grpc connection with error: failed to exit idle mode: passthrough: received empty target in Build()
and I see the same error message in propeller
Failed to create resource....
using v1.11.1-b1
version. These are my helm values(flyte-core)(relavant parts)
flyteagent:
enabled: true
configmap:
enabled_plugins:
tasks:
task-plugins:
enabled-plugins:
- agent-service
default-for-task-types:
sensor: agent-service
plugins:
agent-service:
supportedTaskTypes:
- sensor
agent logs
Starting up the server to expose the prometheus metrics...
Starting the agent service...
Am I missing something out?tall-lock-23197
damp-lion-88352
04/09/2024, 7:08 AMfrom flytekit.sensor.file_sensor import FileSensor
from flytekit import task, workflow
sensor = FileSensor(name="test_sensor")
@task()
def t1():
return
@workflow()
def wf():
sensor(path="/") >> t1()
if __name__ == "__main__":
wf()
damp-lion-88352
04/09/2024, 7:23 AMpyflyte run --remote sensor_example.py sensor --path "<s3://my-s3-bucket>"
blue-ice-67112
04/09/2024, 7:42 AMdamp-lion-88352
04/09/2024, 8:25 AMblue-ice-67112
04/09/2024, 8:31 AMimage: <http://ghcr.io/flyteorg/flyteagent:1.11.0|ghcr.io/flyteorg/flyteagent:1.11.0>
damp-lion-88352
04/09/2024, 9:26 AMdamp-lion-88352
04/09/2024, 10:36 AMagent-service:
defaultAgent:
defaultTimeout: 10s
endpoint: dns:///flyteagent.flyte.svc.cluster.local:8000
insecure: true
timeouts:
GetTask: 10s
supportedTaskTypes:
- default_task
damp-lion-88352
04/09/2024, 10:41 AMdamp-lion-88352
04/09/2024, 10:41 AMblue-ice-67112
04/09/2024, 10:58 AMagent-service:
supportedTaskTypes:
- sensor
after updating with yours, it started working now!blue-ice-67112
04/09/2024, 10:59 AMdamp-lion-88352
04/09/2024, 3:24 PMdamp-lion-88352
04/09/2024, 3:25 PMdamp-lion-88352
04/09/2024, 3:25 PMblue-ice-67112
04/09/2024, 4:58 PMdamp-lion-88352
04/10/2024, 3:05 AMdamp-lion-88352
04/10/2024, 3:52 AMdamp-lion-88352
04/10/2024, 3:53 AMdamp-lion-88352
04/10/2024, 3:53 AMblue-ice-67112
04/11/2024, 7:16 AMbroad-train-34581
04/16/2024, 8:38 AMUSER::rpc error: code = Internal desc = failed to create caramlnotification task with error: 'CustomAgent' object has no attribute 'create'
helm
enabled_plugins:
tasks:
enabled-plugins:
- container
- sidecar
- k8s-array
- agent-service
default-for-task-types:
container: container
sidecar: sidecar
container_array: k8s-array
customagent: agent-service
plugins:
agent-service:
supportedTaskTypes:
- customagent
defaultAgent:
defaultTimeout: 10s
endpoint: dns:///flyteagent.flyte.svc.cluster.local:8000
insecure: true
timeouts:
GetTask: 10s
Task
class CustomAgentTask(SyncAgentExecutorMixin, PythonTask):
_TASK_TYPE = "customagent"
super().__init__(
task_type=self._TASK_TYPE,
...
)
Agent
class CustomAgent(SyncAgentBase):
_TASK_TYPE = "customagent"
def __init__(self):
super().__init__(task_type_name=TASK_TYPE)
broad-train-34581
04/16/2024, 8:48 AMpyflyte serve agent --port 8000
agent is name: "Sensor"
supported_task_types: "sensor"
supported_task_categories {
name: "sensor"
}
Starting Sensor that supports task categories ['sensor']
agent is name: "Custom Agent"
supported_task_types: "customagent"
is_sync: true
supported_task_categories {
name: "customagent"
}
Starting Custom Agent that supports task categories ['customagent']
agent is name: "ChatGPT Agent"
supported_task_types: "chatgpt"
is_sync: true
supported_task_categories {
name: "chatgpt"
}
Starting ChatGPT Agent that supports task categories ['chatgpt']
blue-ice-67112
04/16/2024, 8:49 AMplugins:
agent-service:
supportedTaskTypes:
- sensor
defaultAgent:
defaultTimeout: 10s
endpoint: dns:///flyteagent.flyte.svc.cluster.local:8000
insecure: true
broad-train-34581
04/16/2024, 8:59 AMdamp-lion-88352
04/16/2024, 4:20 PMit work after i restarted the propellerIt's because propeller needs to read the
supported task type
from the configmap again.
It is not dynamically changing now.