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

ingres: poll: do not poll before notifying systemd #13

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

hnez
Copy link
Collaborator

@hnez hnez commented Aug 27, 2024

We poll each user, repository, run and job in sequence. This can take rather long when a lot of repositories are configured, in fact too long for the default systemd job startup timeout.

There is no real benefit to delaying the startup notification until after the first of polling, so just don't do it instead. This speeds up the perceived startup a lot.

Fixes #6.

We poll each user, repository, run and job in sequence.
This can take rather long when a lot of repositories are configured,
in fact too long for the default systemd job startup timeout.

There is no real benefit to delaying the startup notification until after
the first of polling, so just don't do it instead.
This speeds up the perceived startup a lot.
@hnez hnez requested a review from jluebbe August 27, 2024 18:03
@hnez hnez merged commit 2e80f6e into main Aug 28, 2024
3 checks passed
@hnez hnez deleted the systemd-notify-early branch August 28, 2024 07:23
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.

notify systemd earlier
2 participants