mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #445] [FEATURE REQUEST] expose backend Health in client & server #2227
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @a5r0n on GitHub (Apr 30, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/445
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
to manage app lifecycle, we need to know when to restart some services
Describe the solution you'd like
exposing backend services health (like the Redis connection) should do the trick
@hibiken do u accept PR for this?
Any thoughts how to implement?
NB, i quite new in go, so i need some guidance
@hibiken commented on GitHub (May 10, 2022):
@a5r0n Thank you for opening this issue!
I want to do a bit more research around how we should do health checking / export health status, etc.
I'll get back to you soon 👍
@gbolo commented on GitHub (Aug 26, 2022):
@hibiken how about just a basic redis ping/connection check like the server has right now, exposed through the callback function passed in the server config
This seems to work very good for me on the server side. Would love to have the same on the client side ;)
@al-bglhk commented on GitHub (Sep 14, 2022):
How did you do that? Any sample codes please?
I'm creating an app in a cluster, and I need to expose some liveliness probes. Is there something ready-to-use from asynq? Otherwise, I'll just spin a small http server.
@pbarnum commented on GitHub (Dec 13, 2022):
I personally would love to ping Redis (through the Asynq Client/Server) directly instead of relying on Asynq's callback function to do this for me. I have multiple dependencies performing health checks for my service and each one of them provide a direct function call that I can fanout. However for Asynq, I need to rely on the "latest" status returned, which may end up being stale at that point.
@pbarnum commented on GitHub (Jan 5, 2023):
Hey @hibiken, I'm bumping this thread to see if you had a chance to consider my last message. I also tagged this issue in a PR I submitted a few weeks back.