summaryrefslogtreecommitdiff
path: root/lib/Net
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-22 18:02:55 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-22 18:02:55 +0200
commit34b42bc83c4e30ab3599d37934526c637fb5db88 (patch)
treec3fea1c47ffbf51fc4d144efc316486091a83d93 /lib/Net
parentpresque client (diff)
downloadnet-presque-34b42bc83c4e30ab3599d37934526c637fb5db88.tar.gz
small fix
Diffstat (limited to 'lib/Net')
-rw-r--r--lib/Net/Presque.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Net/Presque.pm b/lib/Net/Presque.pm
index 9a85ea9..390eb9e 100644
--- a/lib/Net/Presque.pm
+++ b/lib/Net/Presque.pm
@@ -4,7 +4,7 @@ use MooseX::Net::API;
net_api_declare presque => (
api_format => 'json',
- api_format_mode => 'append',
+ api_format_mode => 'content-type',
);
net_api_method fetch_job => (
@@ -16,6 +16,7 @@ net_api_method fetch_job => (
net_api_method create_job => (
method => 'POST',
+ strict => 0,
path => '/q/:queue_name',
params => [qw/queue_name/],
required => [qw/queue_name/],
@@ -28,8 +29,9 @@ net_api_method reset_queue => (
required => [qw/queue_name/],
);
-net_api_method job_as_failed => (
+net_api_method failed_job => (
method => 'PUT',
+ strict => 0,
path => '/q/:queue_name',
params => [qw/queue_name/],
required => [qw/queue_name/],
@@ -70,7 +72,7 @@ net_api_method worker_stats => (
required => [qw/worker_id/],
);
-net_api_mehod workers_stats => (
+net_api_method workers_stats => (
method => 'GET',
path => '/w/',
);