fix(forgejo): return correct activity to enable scale-to-zero#7532
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
Thank you for your contribution! 🙏 Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected. While you are waiting, make sure to:
Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient. Learn more about our contribution guide. |
282187d to
6ba8c13
Compare
|
/run-e2e forgejo |
Signed-off-by: Rick Brouwer <[email protected]>
|
/run-e2e forgejo |
zroubalik
left a comment
There was a problem hiding this comment.
Shouldn't we make this configurable? The same way activity is handled in other scalers?
@zroubalik Do you mean an ActivationValue? If so, do you want me to add that directly to this PR, or do you want to keep the 'fix' and 'feature' separate in terms of scoping? |
I think it makes sense to do it in a single PR. My other concern is actually a question why this hasn't been implemented in the scaler from the beginning? Does forgejo actually supports this? I don't know, just thinking out loud. |
Signed-off-by: Rick Brouwer <[email protected]>
Yes, me too, I like to keep things separate.
Good question why we missed this.
|
I'd go with this approach personally. |
|
/run-e2e forgejo |
Then we continue with this PR. |
GetMetricsAndActivityalways returned activity=true regardless of the job queue length. This is making scale-to-zero impossible.Checklist
make generate-scalers-schemahas been run to update any outdated generated filesFixes #7527