Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Commit

Permalink
add POD
Browse files Browse the repository at this point in the history
  • Loading branch information
fcuny committed Jun 24, 2010
1 parent 9e851fb commit 07597ec
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions lib/presque/JobQueueHandler.pm
Expand Up @@ -3,12 +3,11 @@ package presque::JobQueueHandler;
use Moose; use Moose;
extends 'Tatsumaki::Handler'; extends 'Tatsumaki::Handler';


with ( with
'presque::Role::QueueName', 'presque::Role::Queue::Names',
'presque::Role::Error', 'presque::Role::Error',
'presque::Role::Response', 'presque::Role::Response',
'presque::Role::RequireQueue' => {methods => [qw/get/]}, 'presque::Role::Queue::WithQueueName' => {methods => [qw/get/]};
);


__PACKAGE__->asynchronous(1); __PACKAGE__->asynchronous(1);


Expand Down Expand Up @@ -50,10 +49,35 @@ presque::JobQueueHandler
=head1 SYNOPSIS =head1 SYNOPSIS
# grab info from a queue
curl http://localhost:5000/j/queuename
=head1 DESCRIPTION =head1 DESCRIPTION
Return some informations about a queue. Return some informations about a queue.
=head1 METHODS
=head2 GET
=over 4
=item path
/j/:queuename
=item request
=item response
content-type: application/json
code: 200
content : {"queue_name":"foo","job_count":"0","job_processed":"127","job_failed":"37"
=back
=head1 AUTHOR =head1 AUTHOR
franck cuny E<lt>franck@lumberjaph.netE<gt> franck cuny E<lt>franck@lumberjaph.netE<gt>
Expand Down

0 comments on commit 07597ec

Please sign in to comment.