itk-dev-rpa / OpenOrchestrator

MIT License
1 stars 4 forks source link

Scheduler freezes when the database connection is interupted #64

Closed ghbm-itk closed 8 months ago

ghbm-itk commented 9 months ago

Whenever an error happens in the database connection Scheduler stops.

It should be possible for it to automatically reconnect

ghbm-itk commented 9 months ago

The problem happens because of the way the update loop in Scheduler is set up.

Now instead of running on a continous loop, it runs once and then schedules a new loop afterwards. This is done to avoid overlapping loops in case a loop is slow.

Error handling needs to take this into account to ensure a new loop is scheduled even when connectivity issues happens.