|| [], shift || []);
my $res = $self->ua->put(
$self->_url . '/broadcast'
=> json => {
command => $command,
args => $args,
ids => $ids
undef, $self->slow);
my $res = $self->ua->post(
$self->_url . '/dequeue'
=> json => {
id => $id,
wait => $wait,
options => $options,
|| [], shift || {});
my $res = $self->ua->post(
$self->_url . '/enqueue'
=> json => {
task => $task,
args => $args,
options => $options
{
my $c = shift;
if ($c->req->json && $c->req->json->{tasks}) {
$config->{minion}->tasks->{$_} = 1 for @{$c->req->json->{tasks}};
}
});
# enable all o
my $c = shift;
my $command = $c->req->json->{command};
my $args = $c->req->json->{args};
my $ids = $c->req->json->{ids};
&_render($c, $app->backend->broad
my $c = shift;
my $id = $c->req->json->{id};
my $wait = $c->req->json->{wait};
my $options = $c->req->json->{options};
&_render($c, $app->backend->dequ