librelist archives

« back to archive

Extending tabs for plugins ?

Extending tabs for plugins ?

From:
Philippe Lafoucrière
Date:
2010-02-10 @ 08:32
Hi,

I diving into resque and its plugin, and all of this is great.
Anyway, I don't think adding more and more tabs is the solution to all problem.
In my case, I have both resque-schedule and resque-status plugins
installed for various needs.
Now I have jobs in the queues, schedule, delayed, statuses tabs. I've
created a gist to demonstrate my point :

http://gist.github.com/299623

This job will retry itself on failure, a certain number of times. The
1st attempt appear in the Queues tab, then in the delayed job if it
has failed on the first time.
I have a job with status ? I won't see it in my queue (haven't tested
yet), but in the Statuses tab.

It's a good overview of jobs to have them spread over tabs. Why don't
we let plugins extand the columns of "Pending jobs on bets" in Queues
instead ?
We would have a complete view of upcoming jobs in the queues, without
having to merge by head all jobs from all the tabs.

Thanks !

Re: [resque] Extending tabs for plugins ?

From:
Chris Wanstrath
Date:
2010-02-12 @ 21:27
2010/2/10 Philippe Lafoucrière <philippe.lafoucriere@gmail.com>:

> It's a good overview of jobs to have them spread over tabs. Why don't
> we let plugins extand the columns of "Pending jobs on bets" in Queues
> instead ?
> We would have a complete view of upcoming jobs in the queues, without
> having to merge by head all jobs from all the tabs.

A patch for this idea would be awesome - we can help you clean it up
if you're a bit unsure of how best to approach the idea.

Cheers,

-- 
Chris Wanstrath
http://github.com/defunkt