diff --git a/config/default_config.go b/config/default_config.go index 062be54..7ae06c7 100644 --- a/config/default_config.go +++ b/config/default_config.go @@ -2,7 +2,7 @@ package config var DefaultConfigYaml = ` info: - version: v0.6.0 + version: v0.6.1 edition: global.edition.community mongo: host: localhost diff --git a/spider/admin/service.go b/spider/admin/service.go index 78da7a5..46dfc6c 100644 --- a/spider/admin/service.go +++ b/spider/admin/service.go @@ -126,7 +126,7 @@ func (svc *Service) scheduleTasks(s *models.Spider, opts *interfaces.SpiderRunOp // TODO: implement associated tasks //ParentId: mainTask.Id, Mode: opts.Mode, - Cmd: s.Cmd, + Cmd: opts.Cmd, Param: opts.Param, NodeId: nodeId, ScheduleId: opts.ScheduleId,