Skip to content

Conversation

@mbanck-cd
Copy link

We needed a possibility to execute some jobs / queries synchronously every time /metrics is requested. So I added the infrastructure to execute jobs with an interval <= 0 synchronously when the http-handler is called.

interval: '0s' # an interval <= 0 will make the queries synchronous

This is a rebase and re-submission from #10 which erroneously got marked as merged a while ago.

@mbanck-cd mbanck-cd mentioned this pull request Jul 17, 2024
We needed a possibility to execute some jobs / queries synchronously every time
/metrics is requested. So I added the infrastructure to execute jobs with an
interval <= 0 synchronously when the http-handler is called.

interval: '0s' # an interval <= 0 will make the queries synchronous

Some typos fixed by Felix Hillingshaeuser, thanks!
@mbanck-cd
Copy link
Author

Did somebody take a look at this?

@dewey
Copy link
Member

dewey commented Feb 14, 2025

Hey @mbanck-ntap, I don't really have time to test it, but it looks good to me and as everything is limited to the 0 case it shouldn't cause any issues for people not using it. Could you rebase on master then I could merge it and create a release.

Thanks!

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