To make things simple, I created following methods using REST action class.
Once, I call srv_setup it returns me "ok" quickly
after that If I can srv_status or srv_setup, it goes on wait until that
sleep 1000, finishes
sub srv_setup :Local :ActionClass('REST') {
my ($self, $c) = @_;
$c->run_after_request(
sub { sleep 1000; }
);
}
sub srv_setup_GET {
my ($self, $c) = @_;
$self->status_ok($c, entity => "ok");
}
sub srv_status :Local :ActionClass('REST') {
my ($self, $c) = @_;
}
sub srv_status_GET {
my ($self, $c) = @_;
$self->status_ok($c, entity => 'progress');
}
On Tue, Mar 5, 2013 at 12:16 AM, Tomas Doran <[email protected]> wrote:
>
> On 4 Mar 2013, at 17:14, linuxsupport <[email protected]> wrote:
>
> > Yes, I know that and tried with -f option, but result was same.
>
> No other ideas. Some code you haven't shown us doesn't work as you expect
> - we can't really do anything other than guess at this point :)
>
> Cheers
> t0m
>
>
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/