summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-23 08:11:48 +0300
committerValery Piashchynski <[email protected]>2021-07-23 08:11:48 +0300
commit6764d0f9e3b8fe34598b425fadf67a043872a604 (patch)
tree1862490366439ab2aebd31fe11a9ffe48ad04cef /plugins
parent3f45d2c008c95daa923fef0c4c9022b2be462971 (diff)
Remove time.Now() from beanstalk tube declaration
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/jobs/drivers/beanstalk/config.go2
-rw-r--r--plugins/jobs/drivers/beanstalk/consumer.go2
2 files changed, 2 insertions, 2 deletions
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(),