Skip to content

Releases: wycore/consul-leader-election

0.3.1

15 Sep 13:02
Compare
Choose a tag to compare
Changed:
  • use README argument description for flag usage strings

0.3.0

14 Sep 12:13
Compare
Choose a tag to compare
Fixed:
  • if acquiring the session is not successful, exit with -not-leader-exit-code instead of 0.
Added:
  • -service-name: Name of the service you want to tag.
  • -leader-tag: Tag which will be set to -service-name if leader.
  • -not-leader-tag: Tag which will be set to -service-name if not leader.
  • -session-lock-delay: The session's lock-delay time in seconds. (Default: 1)

0.2.2

08 Sep 12:01
Compare
Choose a tag to compare
Fixed:
  • check if key exists before checking key session

0.2.1

08 Sep 11:18
Compare
Choose a tag to compare
Fixed:
  • acquire session if key exists but has no session

0.2.0

08 Sep 09:57
Compare
Choose a tag to compare
Added:
  • -leader-exit-code: overwrite exit code if leader (Default: 0)
  • -not-leader-exit-code: overwrite exit code if not leader (Default: 1)
  • -error-exit-code: overwrite exit code for errors (Default: 2)
Changed:
  • check key before trying to acquire it

0.1.0

07 Sep 13:30
Compare
Choose a tag to compare
  • Initial release