Skip to content

Context limit middleware#45

Merged
mxsnq merged 10 commits intomasterfrom
context-limit
Jul 4, 2024
Merged

Context limit middleware#45
mxsnq merged 10 commits intomasterfrom
context-limit

Conversation

@MatthewZMSU
Copy link
Copy Markdown
Contributor

Description

Implemented middleware to handle the number of active contexts. If there are too many contexts, the requests will be returned with 429 (Too many requests) status code. This should help with several spider running concurrently.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Tested the middleware with my local spiders.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@mxsnq mxsnq merged commit 615340c into master Jul 4, 2024
@mxsnq mxsnq deleted the context-limit branch July 4, 2024 06:20
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.

2 participants