feat(scheduler): use an worker pool for scheduler (#1146)

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
peusebiu
2023-02-15 21:36:50 +02:00
committed by GitHub
parent f00a9e6e48
commit 4aa0106b0a
4 changed files with 49 additions and 14 deletions
+1
View File
@@ -384,6 +384,7 @@ func syncRegistry(ctx context.Context, regCfg RegistryConfig,
return err
}
// push from cache to repo
err = pushSyncedLocalImage(localRepo, tag, localCachePath, imageStore, log)
if err != nil {
+1 -1
View File
@@ -1047,7 +1047,7 @@ func TestMandatoryAnnotations(t *testing.T) {
defer dcm.StopServer()
// give it time to set up sync
time.Sleep(5 * time.Second)
time.Sleep(10 * time.Second)
resp, err := destClient.R().Get(destBaseURL + "/v2/" + testImage + "/manifests/0.0.1")
So(err, ShouldBeNil)