From 6764d0f9e3b8fe34598b425fadf67a043872a604 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 23 Jul 2021 08:11:48 +0300 Subject: Remove time.Now() from beanstalk tube declaration Signed-off-by: Valery Piashchynski --- plugins/jobs/drivers/beanstalk/config.go | 2 +- plugins/jobs/drivers/beanstalk/consumer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/jobs/drivers/beanstalk') diff --git a/plugins/jobs/drivers/beanstalk/config.go b/plugins/jobs/drivers/beanstalk/config.go index c1059d1e..f0012362 100644 --- a/plugins/jobs/drivers/beanstalk/config.go +++ b/plugins/jobs/drivers/beanstalk/config.go @@ -32,7 +32,7 @@ type Config struct { func (c *Config) InitDefault() { if c.Tube == "" { - c.Tube = "default-" + time.Now().String() + c.Tube = "default" } if c.ReserveTimeout == 0 { diff --git a/plugins/jobs/drivers/beanstalk/consumer.go b/plugins/jobs/drivers/beanstalk/consumer.go index 8bd11a58..dec54426 100644 --- a/plugins/jobs/drivers/beanstalk/consumer.go +++ b/plugins/jobs/drivers/beanstalk/consumer.go @@ -206,7 +206,7 @@ func (j *JobConsumer) Run(p *pipeline.Pipeline) error { go j.listen() j.eh.Push(events.JobEvent{ - Event: events.EventPipeRun, + Event: events.EventPipeActive, Driver: pipe.Driver(), Pipeline: pipe.Name(), Start: time.Now(), -- cgit v1.2.3