nats-queue-worker icon indicating copy to clipboard operation
nats-queue-worker copied to clipboard

Add shut-down logic for subscriber/publisher

Open alexellis opened this issue 6 years ago • 3 comments
trafficstars

Expected Behaviour

The subscriber (queue-worker) and publisher (gateway) should not try to reconnect if the connection is being broken due to SIGTERM/SIGINT.

Current Behaviour

Once #50 is merged they should both try to re-try during the period at which they are terminating.

Possible Solution

The watchdog implements similar logic, it could probably be adapted for use here: https://github.com/openfaas/faas/blob/master/watchdog/main.go#L86

alexellis avatar Jan 15 '19 10:01 alexellis

Derek assign: me

bartsmykla avatar Jan 15 '19 10:01 bartsmykla

I want to do that. It should be quick thing

bartsmykla avatar Jan 15 '19 10:01 bartsmykla

@bartsmykla has this been resolved with your PR so this issue can be closed? Thx for your work!

embano1 avatar Dec 15 '19 19:12 embano1