summaryrefslogtreecommitdiff
path: root/plugins/jobs/brokers/ephemeral/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jobs/brokers/ephemeral/plugin.go')
-rw-r--r--plugins/jobs/brokers/ephemeral/plugin.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/jobs/brokers/ephemeral/plugin.go b/plugins/jobs/brokers/ephemeral/plugin.go
index 75012873..bfe2d6ac 100644
--- a/plugins/jobs/brokers/ephemeral/plugin.go
+++ b/plugins/jobs/brokers/ephemeral/plugin.go
@@ -29,10 +29,12 @@ func (p *Plugin) Name() string {
func (p *Plugin) Available() {}
+// JobsConstruct creates new ephemeral consumer from the configuration
func (p *Plugin) JobsConstruct(configKey string, pq priorityqueue.Queue) (jobs.Consumer, error) {
return NewJobBroker(configKey, p.log, p.cfg, pq)
}
+// FromPipeline creates new ephemeral consumer from the provided pipeline
func (p *Plugin) FromPipeline(pipeline *pipeline.Pipeline, pq priorityqueue.Queue) (jobs.Consumer, error) {
- return FromPipeline(pipeline, pq)
+ return FromPipeline(pipeline, p.log, pq)
}