billowy-church-83438
09/19/2024, 11:37 PMdefaultAgent
agent_service.yaml: |
plugins:
agent-service:
defaultAgent:
endpoint: customagent:8000
insecure: true
Or does the agents https://github.com/flyteorg/flyte/blob/28f65b30ed745af683e80f9c95400fda411d9c07/flyteplugins/go/tasks/plugins/webapi/agent/config.go#L68
work?
1, It can be used in production, not just for canary deployment, correct? https://github.com/flyteorg/flyte/blob/master/docs/flyte_agents/developing_agents.md#5-canary-deployment
2. in here
agentForTaskTypes:
# It will override the default agent for custom_task, which means propeller will send the request to this agent.
- custom_task: custom_agent
this just means that
• for custom_task, propeller will be sent to the custom_agent, not the default agent.
• but for any other types of task, it will still be sent to the default agent
am I understanding correctly?damp-lion-88352
09/20/2024, 12:16 AMagent-service:
defaultAgent:
endpoint: "localhost:8000"
insecure: true
timeouts:
CreateTask: 100s
GetTask: 100s
defaultTimeout: 100s
agents:
custom_agent:
endpoint: "localhost:8001"
insecure: true
timeouts:
ExecuteTaskSync: 300s
GetTask: 100s
defaultTimeout: 300s
agentForTaskTypes:
- chatgpt: custom_agent
- airflow: custom_agentdamp-lion-88352
09/20/2024, 12:17 AMIt can be used in production, not just for canary deployment, correct?yes, there's company use that
damp-lion-88352
09/20/2024, 12:17 AMfor custom_task, propeller will be sent to the custom_agent, not the default agent.yes
damp-lion-88352
09/20/2024, 12:17 AM• but for any other types of task, it will still be sent to the default agentyes
billowy-church-83438
09/20/2024, 12:22 AMsensor : https://github.com/flyteorg/flytekit/blob/master/flytekit/sensor/base_sensor.py#L54
If I have a custom sensor, and package the custom_agent with end point 8001 it supports custom_sensor type as well, will the configuration look like following?
agent-service:
defaultAgent:
endpoint: "localhost:8000"
insecure: true
timeouts:
CreateTask: 100s
GetTask: 100s
defaultTimeout: 100s
supportedTaskTypes:
- sensor <<<<<<<=========
agents:
custom_agent:
endpoint: "localhost:8001"
insecure: true
timeouts:
ExecuteTaskSync: 300s
GetTask: 100s
defaultTimeout: 300s
agentForTaskTypes:
- chatgpt: custom_agent
- airflow: custom_agent
- custom_sensor: custom_agent <<<<<========damp-lion-88352
09/20/2024, 12:23 AMdamp-lion-88352
09/20/2024, 12:23 AMdamp-lion-88352
09/20/2024, 12:23 AMdamp-lion-88352
09/20/2024, 12:23 AMsupportedTaskTypesdamp-lion-88352
09/20/2024, 12:24 AMdamp-lion-88352
09/20/2024, 12:24 AMbillowy-church-83438
09/20/2024, 12:24 AMdamp-lion-88352
09/20/2024, 12:25 AMsupportedTaskTypes:
- sensor
- custom_sensordamp-lion-88352
09/20/2024, 12:25 AMbillowy-church-83438
09/20/2024, 12:26 AMsupportedTaskTypes in defaultAgent section.
the defaultAgent would not have custom_sensor
so we can not configure the custom_sensor in the defaultAgentdamp-lion-88352
09/20/2024, 12:26 AMdamp-lion-88352
09/20/2024, 12:26 AMagent-service:
supportedTaskTypes:
- chatgpt
- sensor
- spark
- default_task
- custom_task
- sensor
- airflow
By default, all the request will be sent to the default agent.
defaultAgent:
endpoint: "localhost:8000"
insecure: true
timeouts:
CreateTask: 100s
GetTask: 100s
defaultTimeout: 100s
agents:
custom_agent:
endpoint: "localhost:8001"
insecure: true
# defaultServiceConfig: '{"loadBalancingConfig": [{"round_robin":{}}]}'
timeouts:
ExecuteTaskSync: 300s
GetTask: 100s
defaultTimeout: 300sdamp-lion-88352
09/20/2024, 12:26 AMagent-service sectionbillowy-church-83438
09/20/2024, 12:27 AMsupported task type is inReally?! are there recent changes that we are using the old version?sectionagent-service
damp-lion-88352
09/20/2024, 12:28 AMdefaultAgent , it will be used by agent-servicebillowy-church-83438
09/20/2024, 12:28 AMdamp-lion-88352
09/20/2024, 12:29 AMsupportedTaskTypes from flytekit.billowy-church-83438
09/20/2024, 12:29 AMdamp-lion-88352
09/20/2024, 12:29 AMbillowy-church-83438
09/20/2024, 12:30 AMdamp-lion-88352
09/20/2024, 1:38 AMReally?! are there recent changes that we are using the old version?I just misunderstand this, supported task type is in agent-service section, this is never changed. the order of the key in yaml can be different, but it's always the same.
billowy-church-83438
10/10/2024, 3:27 AMagent_service.yaml: |
plugins:
agent-service:
defaultAgent:
endpoint: flyteagent:8000
insecure: true
agents:
aip-agent:
endpoint: aipflyteagent.dlc-system.svc.kube.grid.linkedin.com:8000
insecure: true
supportedTaskTypes:
- sensor
- dataservicetask
it looks like the request will be always sent to the aip-agent end point
and we can not remove sensor because it is needed for the defaultAgent.
What’s the best way to do this?damp-lion-88352
10/10/2024, 3:28 AMbillowy-church-83438
10/10/2024, 3:28 AMdamp-lion-88352
10/10/2024, 3:28 AMdamp-lion-88352
10/10/2024, 3:29 AMbillowy-church-83438
10/10/2024, 3:29 AMbillowy-church-83438
10/10/2024, 3:29 AMdamp-lion-88352
10/10/2024, 3:30 AMdamp-lion-88352
10/10/2024, 3:30 AMdamp-lion-88352
10/10/2024, 3:30 AMdamp-lion-88352
10/10/2024, 3:30 AMdamp-lion-88352
10/10/2024, 3:31 AMbillowy-church-83438
10/10/2024, 3:31 AMagentForTaskTypes work?damp-lion-88352
10/10/2024, 3:31 AMdamp-lion-88352
10/10/2024, 3:31 AMdamp-lion-88352
10/10/2024, 3:31 AMdamp-lion-88352
10/10/2024, 3:32 AMagent-service:
# supportedTaskTypes:
# - chatgpt
# - sensor
# - spark
# - default_task
# - custom_task
# - sensor
# - airflow
# By default, all the request will be sent to the default agent.
defaultAgent:
endpoint: "localhost:8000"
insecure: true
timeouts:
CreateTask: 100s
GetTask: 100s
defaultTimeout: 100s
agents:
custom_agent:
endpoint: "localhost:8001"
insecure: true
# defaultServiceConfig: '{"loadBalancingConfig": [{"round_robin":{}}]}'
timeouts:
ExecuteTaskSync: 300s
GetTask: 100s
defaultTimeout: 300s
agentForTaskTypes:
# It will override the default agent for custom_task, which means propeller will send the request to this agent.
- chatgpt: custom_agent
- airflow: custom_agentdamp-lion-88352
10/10/2024, 3:32 AMbillowy-church-83438
10/10/2024, 3:33 AMsensor is for defaultAgent?billowy-church-83438
10/10/2024, 3:34 AMbillowy-church-83438
10/10/2024, 3:34 AMsensor: defaultAgent?damp-lion-88352
10/10/2024, 3:34 AMdamp-lion-88352
10/10/2024, 3:34 AMdamp-lion-88352
10/10/2024, 3:34 AMdamp-lion-88352
10/10/2024, 3:34 AMdamp-lion-88352
10/10/2024, 3:34 AMdamp-lion-88352
10/10/2024, 3:34 AMdamp-lion-88352
10/10/2024, 3:40 AMdamp-lion-88352
10/10/2024, 3:40 AMsensor: defaultAgentdamp-lion-88352
10/10/2024, 3:40 AMbillowy-church-83438
10/10/2024, 3:40 AMdamp-lion-88352
10/10/2024, 3:40 AMdamp-lion-88352
10/10/2024, 6:08 AMbillowy-church-83438
10/10/2024, 6:11 AMdamp-lion-88352
10/10/2024, 6:12 AMbillowy-church-83438
10/10/2024, 6:34 AMdamp-lion-88352
10/10/2024, 6:41 AMdamp-lion-88352
10/10/2024, 6:41 AMdamp-lion-88352
10/10/2024, 6:41 AMdamp-lion-88352
10/10/2024, 6:42 AMdamp-lion-88352
10/10/2024, 6:42 AMbillowy-church-83438
10/10/2024, 6:43 AMbillowy-church-83438
10/10/2024, 6:43 AMdamp-lion-88352
10/10/2024, 6:44 AMdamp-lion-88352
10/10/2024, 6:44 AMdamp-lion-88352
10/10/2024, 6:44 AMdamp-lion-88352
10/10/2024, 6:44 AMbillowy-church-83438
10/10/2024, 8:09 AM{
"asctime": "2024-10-10 08:05:36,444",
"name": "flytekit",
"levelname": "ERROR",
"message": "failed to create dssensor task with error `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.."
}
I will check more tomorrow.damp-lion-88352
10/10/2024, 8:47 AMdamp-lion-88352
10/10/2024, 8:47 AMdamp-lion-88352
10/10/2024, 8:47 AMdamp-lion-88352
10/10/2024, 8:52 AMdamp-lion-88352
10/10/2024, 8:52 AMmysterious-knife-69764
10/10/2024, 2:53 PMbillowy-church-83438
10/10/2024, 3:48 PMdamp-lion-88352
10/10/2024, 4:00 PMdamp-lion-88352
10/10/2024, 4:00 PMdamp-lion-88352
10/10/2024, 4:00 PMdamp-lion-88352
10/10/2024, 4:00 PM