[SERVER-75893] Allow js hooks to run js file with some specified frequency Created: 10/Apr/23 Updated: 24/May/23 Resolved: 24/May/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Charlie Swanson | Assignee: | Davis Haupt (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | greenerbuild, quick-tech-debt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Query Integration
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
We currently do some manual rate limiting in the invoked JS test, as in run_aggregate_metrics_background.js As mentioned there, it would be better to have the test harness do this. We are adding another instance of this in |
| Comments |
| Comment by Davis Haupt (Inactive) [ 24/May/23 ] |
|
This ticket will be fixed in the PR for |
| Comment by Charlie Swanson [ 21/Apr/23 ] |
|
I think I made this work in |
| Comment by Tausif Rahman (Inactive) [ 20/Apr/23 ] |
|
I took a quick pass. It seems like we the "continuous running" happens in _ContinuousDynamicJSTestCase which is what we use in AggregateResouceConsumptionMetricsInBackground we can probably add a param to _ContinuousDynamicJSTestCase to sleep after each run. That should make this new behavior reusable. I trust max.hirschhorn@mongodb.com pointed you in the right direction in case this isn't exactly what you were thinking. Feel free to add me on the PR if you want. |
| Comment by Alex Neben [ 20/Apr/23 ] |
|
Tagging tausif.rahman@mongodb.com as he will know more than me on how much work this would be. |
| Comment by Charlie Swanson [ 14/Apr/23 ] |
|
I'll investigate as part of putting the suite back in the second time after it got reverted. I have an idea after max.hirschhorn@mongodb.com showed me some other code |