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

Feat: Probing with Queue #1214

Closed
wants to merge 8 commits into from
Closed

Feat: Probing with Queue #1214

wants to merge 8 commits into from

Conversation

dennypradipta
Copy link
Contributor

Monika Pull Request (PR)

What feature/issue does this PR add

This PR fixes #980

How did you implement / how did you fix it

Even though we did not use Bree or Piscina as it is too much effort to refactor, I tried to do a POC using https://www.npmjs.com/package/queue to queue the probing functions.

Supposedly there are 800 probes, when it is time to probe, it will be queued.

How to test

Run Monika with Symon Mode

@dennypradipta dennypradipta changed the title Queue poc Feat: Probing with Queue Dec 15, 2023
Copy link

codecov bot commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (63ccdf8) 63.67% compared to head (1e6de29) 63.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1214      +/-   ##
==========================================
+ Coverage   63.67%   63.70%   +0.03%     
==========================================
  Files         111      111              
  Lines        3207     3210       +3     
  Branches      544      544              
==========================================
+ Hits         2042     2045       +3     
  Misses        990      990              
  Partials      175      175              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@haricnugraha
Copy link
Contributor

Could you elaborate more on the differences before and after implementing the queue? I think you could achieve the same result by removing the setTimeout function.

@dennypradipta dennypradipta marked this pull request as draft January 19, 2024 02:58
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.

Investigate probing mechanism with Bree or similar
5 participants