If controller error propagates all the way out, bail execution

This commit is contained in:
Ole Markus With 2022-11-20 15:40:00 +01:00
parent 2f4c40b47c
commit 07dc39abc7

View File

@ -292,7 +292,7 @@ func (c *Controller) Run(ctx context.Context) {
for {
if c.ShouldRunOnce(time.Now()) {
if err := c.RunOnce(ctx); err != nil {
log.Error(err)
log.Fatal(err)
}
}
select {