Skip to content

Add shut-down logic for subscriber/publisher #51

@alexellis

Description

@alexellis

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions