singleton-task


Description
Due to the nature of microservices, k8s etc., we have multiple pods\instances of the same service, but in some cases, there is a
the requirement to run the specific job in a single instance, for example, some parsing jobs with rate limiting, database migrations, etc.
Here come the leader election algorithms.
This implementation is targeted for redlock approach
Installation
go get github.com/skynet2/singleton-task
Quickstart