eebbesen / minutes_maid

Extract data from council meeting documents
MIT License
4 stars 5 forks source link

Fix items path -- it takes too long to load #93

Open eebbesen opened 4 years ago

eebbesen commented 4 years ago

Instructions to recreate

  1. Navigate to https://minutes-maid.herokuapp.com/
  2. Click Items
  3. Note the long load time and/or timeout

Details

Jan 27 22:23:36 
minutes-maid heroku/router: at=error 
code=H12 
desc="Request timeout" 
method=GET 
path="/items" 
host=minutes-maid.herokuapp.com 
...
service=30001ms 
status=503 
...
protocol=https

Per https://blog.papertrailapp.com/analyzing-heroku-router-logs-with-papertrail/

Code that requires more than 30 seconds must run asynchronously (e.g., as a background job) in Heroku. For more info read Request Timeout in the Heroku DevCenter.

Some Options

I'm sure there are more options, too. And several of them are not mutually exclusive.