Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker health check implementation #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion sharq/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,12 @@ def metrics(self, queue_type=None, queue_id=None):
'`queue_id` should be accompanied by `queue_type`.')

return response

def worker_health_status(self, key):
"""
To check the availability of worker health. If worker not running health check will fail
:return: value or None
"""
return self._r.get(key)
def deep_status(self):
"""
To check the availability of redis. If redis is down get will throw exception
Expand Down