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.