<#6464 Agent auto discovery conflicts with explici...
# flyte-github
c
#6464 Agent auto discovery conflicts with explicit task type mapping Pull request opened by popojk ## Tracking issue Closes #6349 ## Why are the changes needed? The current propeller agent/connector task_type auto-discovery in combination with ignoring the explicit mapping will cause problems while 2 agent/connector deployments has different config but has the same support task type. On the other hand, it also complicates agent development. Developers have to be mindful of which agents are installed on the image and cannot simply rely on the mapping in the configuration. ## What changes were proposed in this pull request? Respect the explicit task_type mapping over the implicit (auto-discovery) mapping. The agent/connector registry will always inline with the
agentForTaskTypes
settings in the config file. ## How was this patch tested? The unit test in this PR can test the expected behavior. ### Labels Please add one or more of the following labels to categorize your PR: • changed: For changes in existing functionality. ## Check all the applicable boxes • All new and existing tests passed. • All commits are signed-off. https://bito.ai#summarystart| ### Summary by Bito This pull request enhances the agent and connector task type auto-discovery by prioritizing explicit task type mappings in the configuration over implicit ones. It modifies the registry handling to ensure configuration settings are respected and includes unit tests to validate these changes. flyteorg/flyte