3scale / apisonator

Red Hat 3scale API Management Apisonator backend
https://3scale.net
Apache License 2.0
36 stars 27 forks source link

Async worker: exit cleanly when fetcher fails #254

Closed davidor closed 3 years ago

davidor commented 3 years ago

When the job fetcher thread fails, it does not make sense to keep the worker running, because it's not going to do anything useful. This PR notifies when the job fetcher fails and exits cleanly ensuring that the shared job queue is always closed.

unleashed commented 3 years ago

r=me after https://github.com/3scale/apisonator/pull/254#discussion_r570437330 is confirmed ok.

davidor commented 3 years ago

bors r=unleashed

bors[bot] commented 3 years ago

:clock1: Waiting for PR status (Github check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

bors[bot] commented 3 years ago

Build succeeded: