A more interesting questions is "why do you want this?"

This comes up from time to time, and often the right solution is to run 
another daemon in parallell.


On Friday, May 13, 2016 at 9:19:03 AM UTC+2, Matija Papec wrote:
>
> I would like to give exclusive flag to one of the workers in a way that if 
> it gets killed, some other worker picks up the flag (possibly without 
> recurring timer involved).
>
> Perhaps something along the lines,
>
> Mojo::IOLoop->flock($fh, LOCK_EX, sub{
>
>     say "waiting was worthwhile, just got exclusive flag";
> });
>
> Please suggest plugin or perldoc reference to such functionality.
>
>
>
> thanks in advance
>
>
>

-- 
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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to