Skip to content

Add 100ms delay between API requests - #316

Open
tooomm wants to merge 1 commit into
masterfrom
tooomm-delay
Open

Add 100ms delay between API requests#316
tooomm wants to merge 1 commit into
masterfrom
tooomm-delay

Conversation

@tooomm

@tooomm tooomm commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

Try to prevent timeouts that happen unregularly.
This also adheres to the good citizenship the Scryfall API asks for: https://scryfall.com/docs/api

Delay is only added for fresh requests (not cached). Maybe that's not needed?

Recently:
https://github.com/Cockatrice/Magic-Spoiler/actions/runs/20858184171
https://github.com/Cockatrice/Magic-Spoiler/actions/runs/20767318177

@tooomm

tooomm commented Jan 18, 2026

Copy link
Copy Markdown
Contributor Author

Aaannd again another timed out and failed run:
https://github.com/Cockatrice/Magic-Spoiler/actions/runs/21085823508/job/60648875048

@tooomm
tooomm requested a review from ZeldaZach January 18, 2026 14:24
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.

1 participant