Pre/post actions and hooks for Sling replications and pipelines. Use when adding actions before/after replications, executing SQL queries, sending HTTP webhooks, validating data with checks, running shell commands, copying/deleting files, or implementing notifications.
Hooks are custom actions that execute at specific points in replications. Steps are the same concept used in pipelines.
| Location | When | Use Case |
|---|---|---|
start | Before any stream runs | Setup, notifications |
end | After all streams complete | Cleanup, notifications |
pre | Before each stream | Validation, setup |
post | After each stream | Logging, notifications |
pre_merge | Before merge (in transaction) | Session settings |
post_merge | After merge (in transaction) | Additional SQL |