summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-25 14:21:53 +0300
committerValery Piashchynski <[email protected]>2021-06-25 14:21:53 +0300
commitad1ca84b26bb6a4ba410a8a684fe3d2e2f86eaea (patch)
tree9d426322de665a47b059d094eebb034f43673269 /plugins
parent09041fe7499be1929aaffaa113f93f6853564c09 (diff)
- Update jobs interface
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/jobs/plugin.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/jobs/plugin.go b/plugins/jobs/plugin.go
index 90932edd..8c5a665e 100644
--- a/plugins/jobs/plugin.go
+++ b/plugins/jobs/plugin.go
@@ -95,6 +95,19 @@ func (p *Plugin) Serve() chan error {
// start consume loop
// start resp loop
+ /*
+ go func() {
+ for {
+ // get data JOB from the queue
+ job := p.queue.Pop()
+
+ // request
+ _ = job
+ p.workersPool.Exec(nil)
+ }
+ }()
+
+ */
return errCh
}