pause_resume

command
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package main demonstrates the Pause/Resume and Auto-Retry mechanism.

Scenario: A webhook delivery service where:

  • PauseAfterErrCount=3: auto-pauses after 3 consecutive failures
  • PauseRetryDelay=30s: auto-resumes after 30 seconds
  • Manual resume via client.ResumeJob() for operator intervention
  • ConsecutiveErrors resets to 0 on success

This prevents a failing endpoint from consuming retry budget endlessly, giving operators time to investigate while allowing automatic recovery.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL