resque / resque-web

a Rails-based web interface to Resque
235 stars 166 forks source link

API Call to get info #102

Closed ericfranckx closed 7 years ago

ericfranckx commented 8 years ago

Hi, is it possible to use some API or call to get info about what can see resque-web ? Like how many queues (items in the queue) ? How many process ? on which servers ?

Regards, Eric

Eunoia commented 8 years ago

You can find out this information from resque object.

Array of queue names: Resque.queues How many items in a queue: Resque.size(name_of_queue) Items in a queue: Resque.peek(name_of_queue, 0, Resque.size(name_of_queue)+1) Finding more about workers and their servers: Resque.workers

ericfranckx commented 8 years ago

thanks

mcfiredrill commented 8 years ago

There is currently no HTTP API or anything on resque-web for this. If that's something people are interested in I would gladly consider a PR. 📝

Eunoia commented 8 years ago

I'd like to work on this.

ericfranckx commented 8 years ago

Thanks Eric Franckx Global Technology Strategy Director

NGA Human Resources The Crescent Brussels Route de Lennik / Lenniksebaan 451 1070 Brussels BELGIUM Mobile: +32 477 37 69 74 Work: +32 2 558 06 70 Fax: +32 2 558 06 80 Email: eric.franckx@ngahr.com Web: www.ngahr.com


From: Tony Miller notifications@github.com Sent: Saturday, May 21, 2016 2:47:03 AM To: resque/resque-web Cc: Eric Franckx; Author Subject: Re: [resque/resque-web] API Call to get info (#102)

There is currently no HTTP API or anything on resque-web for this. If that's something people are interested in I would gladly consider a PR. ?

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/resque/resque-web/issues/102#issuecomment-220748681

This email is sent on behalf of Northgate Information Solutions Limited and its associated companies ("Northgate") and is strictly confidential and intended solely for the addressee(s). If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully; (ii) contact Northgate immediately on +44 (0)1442 232424 quoting the name of the sender and the addressee then delete it from your system. Northgate has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted. You should scan attachments (if any) for viruses.