aboutsummaryrefslogtreecommitdiff
path: root/weed/command/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/admin.go')
-rw-r--r--weed/command/admin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/command/admin.go b/weed/command/admin.go
index c1b55f105..0f85b6478 100644
--- a/weed/command/admin.go
+++ b/weed/command/admin.go
@@ -25,6 +25,7 @@ import (
"github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/security"
"github.com/seaweedfs/seaweedfs/weed/util"
+ "github.com/seaweedfs/seaweedfs/weed/worker/tasks"
)
var (
@@ -229,6 +230,9 @@ func startAdminServer(ctx context.Context, options AdminOptions) error {
fmt.Printf("Data directory created/verified: %s\n", dataDir)
}
+ // Initialize dynamic task type functions now that all tasks are registered
+ tasks.InitializeDynamicTaskTypes()
+
// Create admin server
adminServer := dash.NewAdminServer(*options.masters, nil, dataDir)