Thanks, but I want to do it without a cron job in a single 
Mojolicious::Lite app.

Do you think this is a viable solution?

Mojo::IOLoop->next_tick(sub {
>     if(! -e 'timer.running') {
>         open my $fh, '>', 'timer.running' or die $!;
>         app->log->debug('timer created');
>
>         Mojo::IOLoop->recurring(1 => sub {
>             #...
>         });
>     }
> });


-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to