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

Function SyncTaskPlugins

controller/task_plugin.go:1221–1225  ·  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

1219// SyncTaskPlugins reloads the plugins every 30 seconds after the startup sync,
1220// for changes that did not bump the plugins sync topic.
1221func SyncTaskPlugins() {
1222 for range time.NewTicker(30 * time.Second).C {
1223 SyncTaskPluginsOnce()
1224 }
1225}

Callers 1

mainFunction · 0.92

Calls 1

SyncTaskPluginsOnceFunction · 0.85

Tested by

no test coverage detected