summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/jobs/interface.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/jobs/interface.go b/common/jobs/interface.go
index 9c7ffef8..426d5606 100644
--- a/common/jobs/interface.go
+++ b/common/jobs/interface.go
@@ -10,7 +10,8 @@ import (
type Consumer interface {
Push(job *structs.Job) error
Register(pipeline *pipeline.Pipeline) error
- Consume(pipeline *pipeline.Pipeline) error
+ Run(pipeline *pipeline.Pipeline) error
+ Stop() error
// List of the pipelines
List() []string
@@ -20,4 +21,5 @@ type Consumer interface {
type Constructor interface {
JobsConstruct(configKey string, queue priorityqueue.Queue) (Consumer, error)
+ FromPipeline(pipe *pipeline.Pipeline, queue priorityqueue.Queue) (Consumer, error)
}