leetcode-patterns icon indicating copy to clipboard operation
leetcode-patterns copied to clipboard

Multi-thread API calls to Leetcode

Open seanprashad opened this issue 3 years ago • 0 comments

With https://github.com/seanprashad/leetcode-patterns/blob/5f092dce7487afe30d699cd7cf43ead7c8c7bee4/cron/update_questions.py#L51, we're able to programatically retrieve question metadata in a sequential manner using Leetcode's API.

It would be great if we were to perform these calls asynchronously in order to speed up the script (which takes ~20-30 seconds right now).

seanprashad avatar Aug 07 '22 00:08 seanprashad

Reopened due to #232 - when the updated script ran in GitHub Actions, question #170 was being incorrectly updated with a random question's metadata.

seanprashad avatar Aug 14 '22 14:08 seanprashad

Closing due to sporadic behaviour with GitHub Actions and multiple threads. We can revisit this at a future time when the situation warrants it.

seanprashad avatar Aug 22 '22 16:08 seanprashad