Skip to content

Commit

Permalink
fix: print error log instead of crashing scheduler on bad connector c…
Browse files Browse the repository at this point in the history
…onfig (#77)

Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>

Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
  • Loading branch information
darkmatterpool authored Jan 2, 2023
1 parent 2097a6f commit 597dc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/task/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (s *DefaultTaskScheduler[TaskDescriptor]) Restore(ctx context.Context) erro
for _, task := range tasks {
err = s.startTask(task.Descriptor)
if err != nil {
return err
s.logger.Errorf("Unable to restore task %s: %s", task.ID, err)
}
}

Expand Down

0 comments on commit 597dc59

Please sign in to comment.