Skip to content

Multi-thread API calls to Leetcode #217

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

Closed
seanprashad opened this issue Aug 7, 2022 · 2 comments · Fixed by #231
Closed

Multi-thread API calls to Leetcode #217

seanprashad opened this issue Aug 7, 2022 · 2 comments · Fixed by #231

Comments

@seanprashad
Copy link
Owner

seanprashad commented Aug 7, 2022

With

response = api_instance.graphql_post(body=graphql_request).to_dict()
, 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
Copy link
Owner Author

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 seanprashad closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2022
@seanprashad
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant