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

Get the number active requests #869

Closed
mikaelkrief opened this issue Nov 9, 2021 · 4 comments · Fixed by #875 or #918
Closed

Get the number active requests #869

mikaelkrief opened this issue Nov 9, 2021 · 4 comments · Fixed by #875 or #918
Assignees
Milestone

Comments

@mikaelkrief
Copy link

mikaelkrief commented Nov 9, 2021

On my company, we are using Pode for expose API, but for deliver new versions of the PowerShell code, we need to wait that there are no outstanding API request.

Does its possible to get the number of current request active ?

@Badgerati
Copy link
Owner

Hey @mikaelkrief,

It's not directly supported at the moment, and having some metrics functions for this is actually a good idea. I'll look into it, but it should be possible.

@mikaelkrief
Copy link
Author

thank you

@mikaelkrief
Copy link
Author

Hi @Badgerati
Hi tested this method Get-PodeServerActiveRequestMetric it's working fine, but it's only for get the number of requests that is in queue or ready to be proceded.
Does it's possible to get the number of requests which are currently running ?

thanks

@Badgerati
Copy link
Owner

Hi @mikaelkrief,

I have a possible idea on how to implement this, so I'll have a look soon - just updating Pode.Web at the moment :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment