Skip to content

Commit

Permalink
disable river for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Nov 12, 2024
1 parent 164e6b3 commit bc5a206
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ func (p *Engine) Shutdown(ctx context.Context) error {

func (p *Engine) _shutdown(ctx context.Context) (err error) {
close(p.shutdownCh)
if !p.cfg.DisableCycle {
err = p.cfg.River.Stop(ctx)
}
// if !p.cfg.DisableCycle {
// err = p.cfg.River.Stop(ctx)
// }
<-p.runLoopExit
return err
}
Expand Down Expand Up @@ -549,12 +549,13 @@ func (p *Engine) _run(ctx context.Context) error {
}
}

go func() {
err := p.cfg.River.Start(ctx)
if err != nil {
log.Log(ctx, errors.Wrap(err, "start river"))
}
}()
// Disabled until we have our first worker (next PR)
// go func() {
// err := p.cfg.River.Start(ctx)
// if err != nil {
// log.Log(ctx, errors.Wrap(err, "start river"))
// }
// }()

dur := p.cfg.CycleTime
if dur == 0 {
Expand Down

0 comments on commit bc5a206

Please sign in to comment.