acoustic-carpenter-78188
09/30/2023, 2:37 PMtasks:
task-plugins:
enabled-plugins:
- agent-service
default-for-task-types:
api_task: agent-service
plugins:
agent-service:
supportedTaskTypes:
- api_task
Routing Mechanism
To determine the route to the sync plugin, we're leveraging the task's metadata flavor.
The logic can be found in the PR's changes:
Here's the code
if taskTemplate.GetMetadata().GetRuntime().GetFlavor() == syncPlugin
https://github.com/flyteorg/flyte/pull/4107/files#diff-da53a6f262afa680bad44d5bc3e5a6a95f1e8b8764002e0db9a7f015af7d2831R77
☐ I updated the documentation accordingly.
☑︎ All new and existing tests passed.
☑︎ All commits are signed-off.
Note to reviewers
Please also take a look at this PR.
flyteorg/flytekit#1822
Both PRs are interconnected and address related functionalities.
Screen Shot
image▾
acoustic-carpenter-78188
10/17/2023, 4:45 AM