human-essentials icon indicating copy to clipboard operation
human-essentials copied to clipboard

[Performance]Historical data cache job timing out

Open awwaiid opened this issue 2 years ago • 3 comments

From BugSnag: Delayed::WorkerTimeout HistoricalDataCacheJob@default

See https://app.bugsnag.com/ruby-for-good/human-essentials/errors/64e437ef88578c00083d0b99?filters[error.status]=open&filters[event.since]=30d

This came up before, and we cheated by increasing the timeout. I think this time we should look at optimizing directly, as the timeout is already 1200 seconds (20 minutes), and the growth rate seems too high to keep increasing the timeout.

awwaiid avatar Jan 07 '24 16:01 awwaiid

Also noting that this is firing more often than expected -- I thought it was a once a day job, but it has timed out 10 times in the last day.

cielf avatar Jan 07 '24 16:01 cielf

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Feb 07 '24 00:02 github-actions[bot]

An update for anyone who is later to the game on this one -- it was getting set off multiple times a day, but now it isn't. It is still timing out multiple times a day, but that's because there's a job called for each organization and some of these are timing out.
The folks that have taken a quick look say there are some obvious optimizations to be done, in the way of making the database calls do more

cielf avatar Feb 13 '24 23:02 cielf

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Mar 16 '24 00:03 github-actions[bot]

This has been largely addressed -- we haven't had a timeout in 2 weeks. I don't know if there is still more work to be done here, @awwaiid, but if not, let's close it.

cielf avatar Mar 16 '24 00:03 cielf

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.

github-actions[bot] avatar Apr 17 '24 00:04 github-actions[bot]

Agree! Closing.

awwaiid avatar Apr 18 '24 18:04 awwaiid