From 8b7ee0560c7b938bac332b19e5df594d04da16c8 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 5 Apr 2023 10:53:17 +0800 Subject: [PATCH] fix: incorrect cmd issue https://github.com/crawlab-team/crawlab/issues/1277 --- config/default_config.go | 2 +- spider/admin/service.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,