diff options
author | Valery Piashchynski <[email protected]> | 2021-07-23 01:25:12 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-23 01:25:12 +0300 |
commit | 3f45d2c008c95daa923fef0c4c9022b2be462971 (patch) | |
tree | edb88b5470c448da2647715633f383d98818c7fb /plugins/jobs/drivers/beanstalk/config.go | |
parent | ed36f3ef0d18354ab18848aae488d139aefd1146 (diff) |
Update beanstalk options. Fix tube priority (correctly pass to the Put
method).
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/drivers/beanstalk/config.go')
-rw-r--r-- | plugins/jobs/drivers/beanstalk/config.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/jobs/drivers/beanstalk/config.go b/plugins/jobs/drivers/beanstalk/config.go index 6a8bda1d..c1059d1e 100644 --- a/plugins/jobs/drivers/beanstalk/config.go +++ b/plugins/jobs/drivers/beanstalk/config.go @@ -2,6 +2,12 @@ package beanstalk import "time" +const ( + tubePriority string = "tube_priority" + tube string = "tube" + reserveTimeout string = "reserve_timeout" +) + type GlobalCfg struct { Addr string `mapstructure:"addr"` Timeout time.Duration `mapstructure:"timeout"` @@ -26,7 +32,7 @@ type Config struct { func (c *Config) InitDefault() { if c.Tube == "" { - c.Tube = "default" + c.Tube = "default-" + time.Now().String() } if c.ReserveTimeout == 0 { |