Skip to content

Commit

Permalink
Added additional error log
Browse files Browse the repository at this point in the history
  • Loading branch information
manterfield committed Aug 2, 2024
1 parent 207314c commit 4a11f16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ func (r *Runner) MessageHandler(
errs = errors.Join(errs, err)
}

if errs != nil {
logger.Error().Err(err).Msg("Unable to dispatch work")
}

return errs
}

Expand All @@ -135,7 +139,6 @@ func (r *Runner) dispatchWork(ctx context.Context, wg *sync.WaitGroup, flow *mar
// the cron schedules ready for running
//
// This function will not run the schedules, just prepare them
// This function should only ever be called within a lock on r.hopsLock
func (r *Runner) prepareHopsSchedules() error {
schedules := []*Schedule{}
for _, flow := range r.flowReader.ScheduledFlows() {
Expand Down

0 comments on commit 4a11f16

Please sign in to comment.