diff options
author | Valery Piashchynski <[email protected]> | 2021-07-15 00:28:11 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-15 00:28:11 +0300 |
commit | f4feb30197843d05eb308081ee579d3a9e3d6206 (patch) | |
tree | df1a9f9ed83830f2876d7c98c7822b8129b87be1 /plugins | |
parent | 05055561600a240401f6e48e5b6c195d01050d45 (diff) |
Remove duplicated logging
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/jobs/drivers/ephemeral/consumer.go | 14 | ||||
-rw-r--r-- | plugins/jobs/plugin.go | 10 |
2 files changed, 2 insertions, 22 deletions
diff --git a/plugins/jobs/drivers/ephemeral/consumer.go b/plugins/jobs/drivers/ephemeral/consumer.go index 45ee8083..cd08ca7a 100644 --- a/plugins/jobs/drivers/ephemeral/consumer.go +++ b/plugins/jobs/drivers/ephemeral/consumer.go @@ -152,7 +152,7 @@ func (j *JobBroker) Pause(pipeline string) { func (j *JobBroker) Resume(pipeline string) { if q, ok := j.pipeline.Load(pipeline); ok { if q == false { - // mark pipeline as turned off + // mark pipeline as turned on j.pipeline.Store(pipeline, true) } } @@ -165,18 +165,6 @@ func (j *JobBroker) Resume(pipeline string) { }) } -func (j *JobBroker) List() []string { - out := make([]string, 0, 2) - - j.pipeline.Range(func(key, value interface{}) bool { - pipe := key.(string) - out = append(out, pipe) - return true - }) - - return out -} - // Run is no-op for the ephemeral func (j *JobBroker) Run(_ *pipeline.Pipeline) error { return nil diff --git a/plugins/jobs/plugin.go b/plugins/jobs/plugin.go index ce51df21..f71c2718 100644 --- a/plugins/jobs/plugin.go +++ b/plugins/jobs/plugin.go @@ -142,20 +142,12 @@ func (p *Plugin) Serve() chan error { //nolint:gocognit errCh <- errors.E(op, err) return false } - - p.events.Push(events.JobEvent{ - Event: events.EventPipeRun, - Pipeline: pipe.Name(), - Driver: pipe.Driver(), - Start: t, - Elapsed: t.Sub(t), - }) - return true } return true } + p.events.Push(events.JobEvent{ Event: events.EventDriverReady, Pipeline: pipe.Name(), |