core icon indicating copy to clipboard operation
core copied to clipboard

add service to backfill pro matches

Open howardchung opened this issue 6 years ago • 2 comments

Currently, Valve sometimes doesn't add a league ID to the list of leagues until after the event starts, so we miss some of the first matches played.

I wrote a script that iterates over the list of league IDs and can find the match IDs of the matches played and re-inserts them.

https://github.com/odota/core/blob/master/dev/findProMatches.js

We could turn this into a service that runs on a loop.

howardchung avatar Jun 25 '18 06:06 howardchung

I could work on this. I assume the commented part can be removed? 24 hours is probably a good interval.

builder-247 avatar Feb 24 '20 19:02 builder-247

Yeah. It could also probably benefit from being rewritten to use async/await.

24 hours works, but the services are rebooted automatically at least once every 24 hours anyway, so even if you set a longer timeout it might run at least that often.

howardchung avatar Feb 24 '20 23:02 howardchung