Skip to content

Commit

Permalink
fix: execute external init plugins before builtins
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Bétrancourt <[email protected]>
  • Loading branch information
rclsilver committed Aug 19, 2022
1 parent 400db57 commit 304b282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/utask/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ var rootCmd = &cobra.Command{
service := &plugins.Service{Store: store, Server: server}

for _, err := range []error{
// run custom initialization code built as *.so plugins
plugins.InitializersFromFolder(utask.FInitializersFolder, service),
// register builtin initializers
builtin.RegisterInit(service),
// register builtin executors
builtin.Register(),
// run custom initialization code built as *.so plugins
plugins.InitializersFromFolder(utask.FInitializersFolder, service),
// load custom executors built as *.so plugins
plugins.ExecutorsFromFolder(utask.FPluginFolder),
// load the functions
Expand Down

0 comments on commit 304b282

Please sign in to comment.