netenglabs / suzieq

Using network observability to operate and design healthier networks
https://www.stardustsystems.net/
Apache License 2.0
787 stars 104 forks source link

sq-poller: catch exception in node to allow service rescheduling #817

Closed claudiolor closed 1 year ago

claudiolor commented 1 year ago

Description

When the _exec_service() function raised an exception this was not catched, causing the service to never receive a response and so the service never reschedule itself. This PR fixes this issue creating an error response when an exception is raised. Or reraising the exception if the error is not recoverable.

Type of change

Please delete options that are not relevant.