MCPcopy Create free account
hub / github.com/QuantumNous/new-api / SyncTaskPlugins

Function SyncTaskPlugins

controller/task_plugin.go:1196–1200  ·  view source on GitHub ↗

SyncTaskPlugins reloads the plugins every 30 seconds after the startup sync, for changes that did not bump the plugins sync topic.

()

Source from the content-addressed store, hash-verified

1194// SyncTaskPlugins reloads the plugins every 30 seconds after the startup sync,
1195// for changes that did not bump the plugins sync topic.
1196func SyncTaskPlugins() {
1197 for range time.NewTicker(30 * time.Second).C {
1198 SyncTaskPluginsOnce()
1199 }
1200}

Callers 1

mainFunction · 0.92

Calls 1

SyncTaskPluginsOnceFunction · 0.85

Tested by

no test coverage detected