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

Expose the webhook service loop sleep time as an env var #981

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

cemathey
Copy link
Collaborator

This exposes the sleep time for the webhook service loop as HLL_WH_LOOP_SLEEP_TIME so that users can choose a value easily without rebuilding images if they would like to adjust it.

I tested this both with and without a value set to make sure that it works even if people don't update their .env file.

I set the default to 0.006 seconds which should cut down on CPU usage but still be responsive.

CPU usage seems to be quite low even with an idle loop (which is simply sleeping/checking redis for queue keys), although docker stats appears to show incorrect CPU stats compared to btop inside the container.

image

@cemathey cemathey merged commit 4cc5a2a into master Feb 27, 2025
3 checks passed
@cemathey cemathey deleted the maint/expose_webhook_service_sleep_time branch February 27, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants