Watching Stacks and Email Notifications
Watch a stack and Zenfra emails you when one of its runs needs your approval, fails or finishes, and when drift is detected on it or its drift checks start failing. You choose which events reach you; nothing is sent for stacks you do not watch.
Watching a stack
Choose Watch stack in the three-dot menu on the stack's page, and Stop watching to undo it. Watches are saved with your account for the organization you are signed in to, are not shown to other members, and are limited to 100 stacks per organization. See Watching a stack for how watching relates to favorites.
A watch counts from the moment you add it: runs that failed or finished, or started waiting for approval, before you started watching are not reported to you. One exception: a run that was already waiting for approval when you started watching can still email you if its policy is checked again while it waits, for example after someone re-evaluates it. If you stop watching and watch again, the new watch starts counting from then.
Choosing the events
Settings > Notifications holds four switches for your watched stacks:
| Switch | Emails you when | Default |
|---|---|---|
| A run needs my approval | A tracked run is waiting for approval and its policy verdict allows approving it | On |
| A run failed | A run ends Failed or Dead Letter | On |
| A run finished | A run ends Finished, including a plan-only run and a tracked run with no changes | Off |
| Drift on a watched stack | A drift check finds changes, or drift checks start failing; see Drift emails | On |
The switches are saved with your account for the organization; see Notification settings. A switch is read when the email is about to be sent, so turning it off also stops an email that has not gone out yet.
Who gets each email
Every member who watches the stack and has the event switched on, checked again right before sending: the member must still belong to the organization, be active, still watch the stack with the same watch, and still have the switch on. The approval email goes only to members who can approve the run: the Write or Admin role, or a Member whose team grant gives them Write on the stack's space. A member who can only read the stack gets the failure, finish and drift emails only. It also skips the person who started the run when the organization's approval policy excludes them, and anyone who has already approved the run.
What the email contains
The email names the organization, the stack, the run type and trigger, the event and when it happened (in UTC), and links to the run page. Its footer names the watched stack and links to Settings > Notifications. The link only opens the page: nothing in the email approves, cancels or changes a run. Drift emails carry the drift counts or the failure streak instead of the run type and trigger; see Drift emails.
The email never contains plan output, error or failure messages, policy messages or log lines. Open the run to see those.
On the run page
The run page shows a line for each email you got, or are about to get, for that run:
You were notified by email at <time> that this run failed.(orfinished, orneeds approval; on a drift run,that drift was detected on this stackorthat drift checks on this stack are failing). The time is when the email provider accepted the message, in your browser's time zone, not when it reached your inbox.Email notification pending (<event>)while it is queued or being sent.We could not confirm this email notification (<event>)when the provider refused it or the last attempt could not be confirmed.
Nothing is shown for an email that was not sent because you were no longer eligible, and nothing for another member's emails. The page refreshes the line on its own while the run is live, for ten minutes after it ends, and while an email is pending. The history is kept for 30 days after each email's outcome.
What to expect
Notifications are delivered at least once: an eligible email may be attempted more than once if a send cannot be confirmed, so it may arrive twice; attempts stop after five, a permanent rejection, or when the event or recipient is no longer eligible. That is a promise about retries, not that every event sends an email: an event that is over before Zenfra sees it, or before the email goes out, sends nothing.
- Zenfra checks for new events about every 30 seconds. A run that waits for approval and is approved or discarded between two checks sends no approval email.
- An email whose delivery cannot be confirmed is retried with the same message, so the provider can drop the repeat; it may still arrive twice.
- Delivery stops after five attempts; the run page then shows
We could not confirm this email notification. - For run emails (approval, failure, finish): after an outage, an event is still reported if Zenfra first sees it within 24 hours (seven days for an approval). An event first seen later is not reported. Email that was already queued keeps being delivered. Drift has no 24-hour window: a qualifying episode still open after an outage can be reported when Zenfra resumes; see Drift emails.
- For run emails: a run attempt that was already under way when Zenfra started sending these emails is not reported. If such a run is later requeued from the dead letter queue, the new attempt is reported like any other.
- A requeued run that fails again sends a new failure email.
- The plan-only runs a drift schedule starts send no failure or finish email; drift found or failing checks are reported by the drift emails instead. With Reconcile on, the tracked run is covered like any other.