/golang-graceful-shutdown-and-repeating-cron-jobs

Graceful shutdown with repeating "cron" jobs (running at a regular interval) in Go

Primary LanguageGo

Graceful shutdown with repeating "cron" jobs (running at a regular interval) in Go

Illustrates how to implement the following in Go:

  • run functions ("jobs) at a specified interval
  • gracefully shutdown a running process (and wait for any ongoing "job" runs to finish)