<#4107 Agent Sync Plugin> Pull request opened by <...
# flyte-github
a
#4107 Agent Sync Plugin Pull request opened by Future-Outlier Tracking issue #3936 flyteorg/flytekit#1822 Describe your changes • Added settings for enabling agent sync plugins. • Implemented a routing mechanism based on task metadata to direct tasks to the appropriate sync plugin. To set up agent sync plugins, users can now utilize the following configuration: Configuration Example To set up agent sync plugins, users can now utilize the following configuration:
Copy code
tasks:
  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▾

flyteorg/flyte ✅ All checks have passed 2/2 successful checks
#4107 Agent Sync Plugin Pull request ready for review by Future-Outlier flyteorg/flyte