documentcloud / cloud-crowd

Parallel Processing for the Rest of Us

Home Page:https://github.com/documentcloud/cloud-crowd/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too many jobs makes jQuery hang the browser

jgeiger opened this issue · comments

If you have too many jobs running at once, you get a problem with jQuery hanging the browser because it keeps trying to display all of them. This patch will limit the display to 25 jobs and give you a notice on the job queue window that it's being limited. I've also submitted a pull request.

A few of the lines also were changed because of excess trailing whitespace.

http://github.com/jgeiger/cloud-crowd/compare/jgeiger

This is great. I think that we should go further and remove the visual job list from the UI, because it's of limited utility anyway when you have only a couple of jobs. Instead, numerical stats about how many active jobs you have running, and what stage they're in, etc.

That was my next plan. I'd like a running snapshot of what kind of jobs have been run and how many are queued, running, finished, etc. If you've seen resque, I'd like to get something like how they show the number of messages in each queue, but include historical and recent time breakdowns (all-time, last 5 minutes, 30, hour, etc) without being too cluttered.

I've merged jgeiger's branch that fixes the overload issue -- removing the job list is next on the list.