Skip to content
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

Make request throttle configurable #20

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Make request throttle configurable #20

wants to merge 6 commits into from

Conversation

codyhanson
Copy link

I found the 3 requests per second to be a bit limiting, so I put that constant on an environment variable.

I thought about moving the queue instantiation into the client constructor, and reading the limit from the config object as a different solution.

Also, does anyone know at what threshold you will begin to get 503's from mturk?

@modonoghue
Copy link

I was about to submit a similar pull request when I saw yours. We had to modify the library to set the requestsPerSecond parameter to 1 to avoid intermittent turk throttling problems. Set at 1 it seems reliable.

@codyhanson
Copy link
Author

1 request per second? That just seems astonishingly low, when trying really move any amount of data. The default of 3 was working ok for me, but i was wanting to bump it up to 5 or 6...

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.

4 participants