Closed NSExceptional closed 3 years ago
I haven't debugged it yet, but shouldnt be line 374 below 377? Saving before setting values?
Ok. After playing around with the settings I found out that if you set MIN and MAX to the same value (e.g. 2500) and only pick one store (e.g. alternate), the requests are send approx. every 6 seconds (MIN * 2 + 1 second).
I observed that with different values. I think the problem is somewhere around here https://github.com/jef/streetmerchant/blob/113c9ce19f3ed1f140eec7cd555ec373f25d256f/src/index.ts#L73-L80 and here https://github.com/jef/streetmerchant/blob/113c9ce19f3ed1f140eec7cd555ec373f25d256f/src/store/lookup.ts#L534-L550
It somehow waits twice. (Or its a visual bug with the logs?).
The peculiar thing to me is I noticed exactly no difference when I used the default, and then 100/1000, then 10/50, then 5/12. They all ran at the same rate.
I think even if it is waiting twice you would notice a difference at least
If you enable debugging mode (LOG_LEVEL=debug), you can see that it runs through all shops all the time. Maybe the run itself is slow which causes delays between checks?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days
This issue has been closed because it is stale. Reopen if necessary.
Expected Behavior
Lowering
PAGE_SLEEP_MIN/MAX
should speed up the rate at which requests are madeCurrent Behavior
Lowering them has no discernable effect on the rate at which requests are made
Environment
dotenv