mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
updated code structure
This commit is contained in:
@@ -10,13 +10,13 @@ func init() {
|
||||
}
|
||||
|
||||
var handlerCmd = &cobra.Command{
|
||||
Use: "handler",
|
||||
Short: "Start task handler",
|
||||
Long: `Start task handler service (worker) of Crawlab
|
||||
which runs tasks assigned by master node`,
|
||||
Use: "handler",
|
||||
Aliases: []string{"H"},
|
||||
Short: "Start handler",
|
||||
Long: `Start a handler instance of Crawlab
|
||||
which runs tasks with given parameters`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
handler := apps.NewHandler()
|
||||
handler.Init()
|
||||
handler.Run()
|
||||
apps.Start(handler)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user