mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-18 21:26:17 +01:00
Refactor
This commit is contained in:
@@ -28,7 +28,7 @@ import (
|
||||
"github.com/ClusterCockpit/cc-backend/internal/metricdata"
|
||||
"github.com/ClusterCockpit/cc-backend/internal/repository"
|
||||
"github.com/ClusterCockpit/cc-backend/internal/tagger"
|
||||
"github.com/ClusterCockpit/cc-backend/internal/taskManager"
|
||||
"github.com/ClusterCockpit/cc-backend/internal/taskmanager"
|
||||
"github.com/ClusterCockpit/cc-backend/pkg/archive"
|
||||
"github.com/ClusterCockpit/cc-backend/web"
|
||||
ccconf "github.com/ClusterCockpit/cc-lib/ccConfig"
|
||||
@@ -326,7 +326,7 @@ func runServer(ctx context.Context) error {
|
||||
|
||||
// Start archiver and task manager
|
||||
archiver.Start(repository.GetJobRepository(), ctx)
|
||||
taskManager.Start(ccconf.GetPackageConfig("cron"), ccconf.GetPackageConfig("archive"))
|
||||
taskmanager.Start(ccconf.GetPackageConfig("cron"), ccconf.GetPackageConfig("archive"))
|
||||
|
||||
// Initialize web UI
|
||||
cfg := ccconf.GetPackageConfig("ui")
|
||||
@@ -365,7 +365,7 @@ func runServer(ctx context.Context) error {
|
||||
runtimeEnv.SystemdNotifiy(false, "Shutting down ...")
|
||||
srv.Shutdown(ctx)
|
||||
util.FsWatcherShutdown()
|
||||
taskManager.Shutdown()
|
||||
taskmanager.Shutdown()
|
||||
}()
|
||||
|
||||
// Set GC percent if not configured
|
||||
|
||||
Reference in New Issue
Block a user