Clarify when Healthchecks/Cronitor hooks fire in relation to other hooks #238

Closed
opened 2019-11-05 05:29:40 +00:00 by witten · 1 comment
Owner

It's become apparent that it's not at all clear when Healthchecks/Cronitor hooks fire in relation to the traditional command/script hooks, especially given the ordering in the YAML configuration file. So as part of this ticket, update both the docs and the schema to make this much clearer.

For the record, here's the sequence of events for a successful backup as per current code:

  1. Start Healthchecks.
  2. Start Cronitor.
  3. Fire all before_backups hooks.
  4. Dump databases.
  5. Run backups.
  6. Remove database dumps.
  7. Fire all after_backups hooks.
  8. Complete Healthchecks.
  9. Complete Cronitor.

In the case of error, the last few steps are changed to:

  1. Fire all on_error hooks.
  2. Fail Healthchecks.
  3. Fail Cronitor.
It's become apparent that it's not at all clear when Healthchecks/Cronitor hooks fire in relation to the traditional command/script hooks, especially given the ordering in the YAML configuration file. So as part of this ticket, update both the docs and the schema to make this much clearer. For the record, here's the sequence of events for a successful backup as per current code: 1. Start Healthchecks. 2. Start Cronitor. 3. Fire all before_backups hooks. 4. Dump databases. 5. Run backups. 6. Remove database dumps. 7. Fire all after_backups hooks. 8. Complete Healthchecks. 9. Complete Cronitor. In the case of error, the last few steps are changed to: 6. Fire all on_error hooks. 7. Fail Healthchecks. 8. Fail Cronitor.
Author
Owner

borgmatic 1.4.7.

borgmatic 1.4.7.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#238
No description provided.