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

heroku times out for long-running requests from the dashboard #511

Open
deargle opened this issue May 20, 2021 · 0 comments
Open

heroku times out for long-running requests from the dashboard #511

deargle opened this issue May 20, 2021 · 0 comments

Comments

@deargle
Copy link
Collaborator

deargle commented May 20, 2021

Certain large batch requests from the dashboard, such as the big "approve all" button on the Hits tab, take too long for heroku, and will timeout. However, scheduling an approve_all task will not time out. This is because heroku has a cap on how long a browser request can be open before it cuts it off. On the other hand, a scheduled task requires to browser connection. One solution, then, is to have those buttons on the dashboard submit one-time tasks. A downside of this is that it would require do_scheduler to be running. OTOH, it's not a good idea to have long-running requests open on heroku anyway if participants could be taking the study at the same time.

Kind of rambling, but thought it would be good to jot down.

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

No branches or pull requests

1 participant