View Source Kafkaesque.Rescuer (Kafkaesque v1.0.0-rc.2)

Rescues messages stuck in publishing state

If the shutdown wasn't graceful or there are errors, there is the possibility that messages get lost in the :publishing state, which would stop the publishing for a topic + partition combination. This process rescues the stuck messages periodically.

Takes 3 options on startup:

  • :repo: the repo to perform garbage collection on
  • :query_opts: A list of options sent to Repo calls.
  • :rescuer_interval_ms: the interval between garbage collection runs. Notice that it always runs on tstartup.
  • rescuer_limit_ms: the time limit for records to be in the publishing state. Notice that they may stay longer in this state due to the interval.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.