summaryrefslogtreecommitdiff
path: root/plugins/jobs/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-05 18:44:29 +0300
committerValery Piashchynski <[email protected]>2021-07-05 18:44:29 +0300
commit207739f7346c98e16087547bc510e1f909671260 (patch)
tree5c6eac27beb4eb5e127c7d8dae3464edb3359be9 /plugins/jobs/interface.go
parent300166eda7b138847008a7653f90753bd8397b9e (diff)
- Update PQ
- Update ephemeral plugin, complete Push - Add Jobs full configuration Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/interface.go')
-rw-r--r--plugins/jobs/interface.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/jobs/interface.go b/plugins/jobs/interface.go
index a0aed50b..a2cf6ed9 100644
--- a/plugins/jobs/interface.go
+++ b/plugins/jobs/interface.go
@@ -1,17 +1,17 @@
package jobs
import (
- priorityqueue "github.com/spiral/roadrunner/v2/pkg/priority_queue"
+ priorityqueue "github.com/spiral/roadrunner/v2/common/priority_queue"
"github.com/spiral/roadrunner/v2/plugins/jobs/pipeline"
"github.com/spiral/roadrunner/v2/plugins/jobs/structs"
)
// Consumer todo naming
type Consumer interface {
- Push(*pipeline.Pipeline, *structs.Job) (string, error)
+ Push(*structs.Job) (string, error)
Stat()
Consume(*pipeline.Pipeline)
- Register(*pipeline.Pipeline) error
+ Register(pipe string) error
}
type Broker interface {
@@ -20,7 +20,5 @@ type Broker interface {
type Item interface {
ID() string
- Ask()
- Nack()
Payload() []byte
}