Lifecycle Notifications โ
spored records a lifecycle event when something significant happens to your instance: a TTL warning, an idle stop, a completion, a Spot interruption. This page lists those events and how to see them.
Seeing lifecycle events (1.0) โ
The spored log. spored logs its lifecycle decisions (TTL, idle detection, completion) whether or not any notification is configured:
shspawn logs training --which sporedLogs and debugging covers the log files, and the serial-console failure log spored leaves after a termination.
Your own webhook, for completion and Spot interruption. At launch,
--completion-webhook-urland--spot-webhook-urlmake sporedPOSTa fire-once, best-effort notice to a URL you run (a queue, a CI hook, your own service).--webhook-correlationechoes an opaque value of yours in the payload, and--webhook-timeoutcaps the request. See thespawn launchreference.
The lifecycle actions themselves (stop, hibernate, terminate) never depend on a notification being delivered.
Chat delivery is experimental and not part of 1.0
Pushing events to people (Slack DMs, Teams messages, Discord channels) goes through spore-bot, and chat-platform integrations are walled off for 1.0. The hosted spore-bot is decommissioned as of 2026-11, so --slack-workspace and --notify-platform deliver nothing unless you run your own self-hosted spore-bot and point SPORE_NOTIFY_URL at it. Everything from Slack DMs down describes that experimental, unsupported path. See spore-host#611.
What triggers an event โ
| Event | When | Message |
|---|---|---|
| TTL warning | 5 min before TTL expires | โฑ๏ธ name terminates in 5 minutes |
| TTL expired | At TTL | ๐ด name has terminated โ scheduled end time reached |
| Idle warning | 5 min before idle timeout | ๐ค name will stop in 5 minutes โ no activity |
| Idle stopped | At idle timeout (default) | โน๏ธ name has stopped โ idle timeout reached |
| Idle hibernated | At idle timeout with --on-idle hibernate | ๐ค name has hibernated โ idle timeout reached |
| Idle stop failed | The idle stop or hibernate failed; the instance is still running | โน๏ธ name: idle_stop_failed |
| Completion | Completion file detected (a --command writes it when it exits) | โ name has completed |
| Spot interrupt | Spot interruption notice received | โ ๏ธ name received a Spot interruption notice |
| Pre-stop start | Pre-stop hook begins | ๐ name is running its shutdown task |
| Pre-stop failed | The pre-stop hook exited with an error | ๐ name shutdown task FAILED โ output may NOT have been saved |
| Pre-stop timeout | The pre-stop hook ran past its timeout | ๐ name shutdown task TIMED OUT โ output may be incomplete |
| FSx mount failed | The FSx filesystem could not be mounted | โน๏ธ name: fsx_mount_failed |
| FSx DRA failed | The FSx link to S3 (data repository association) could not be set up | โน๏ธ name: fsx_dra_failed |
| Region vacated | No spawn-managed instances remain in the region | โน๏ธ name: region_vacated |
Events without a dedicated message are delivered with the generic โน๏ธ form shown. Lifecycle Events has the full list, including completion_stop_failed and spot_replacement_retired.
Slack DMs โ
Experimental, self-hosted spore-bot only. You receive a direct message in Slack for each event on instances you subscribe to.
Enable at launch:
spawn launch --name training --slack-workspace T03NE3GTY --ttl 8hSubscribe your user:
/spore notify trainingOr subscribe via CLI:
spawn notify register --platform slack --user you@lab.edu --workspace-id T03NE3GTY \
--instance i-0abc123 --nickname trainingChannel webhook โ
Experimental, self-hosted spore-bot only. Posts lifecycle events to a shared Slack channel. The webhook URL is captured automatically during your spore-bot's OAuth flow (Add to Slack), or set manually:
spawn notify workspace add --platform slack --workspace-id T03NE3GTY \
--bot-token xoxb-... --signing-secret <signing-secret> \
--webhook-url https://hooks.slack.com/services/...workspace add replaces the workspace's whole record, so pass the bot token and signing secret again along with the webhook; anything you leave out is cleared.
All lifecycle events for any instance in that workspace post to the configured channel.
Notification-only subscriptions โ
Subscribe to notifications for an instance you don't own or control โ you'll get the DMs without start/stop access:
/spore notify rstudioUnsubscribe: /spore unnotify rstudio
Responding to warnings โ
A TTL warning comes 5 minutes before the deadline. To get more time, extend it:
spawn extend training 4hWith a self-hosted spore-bot, /spore extend training 4h does the same from chat.
Disabling specific events โ
If you want completion and Spot notifications but not TTL/idle warnings, there is no per-event filter today โ all events from spored route to all subscribers. Per-event filtering is on the roadmap.
Teams and Discord โ
Experimental, self-hosted spore-bot only. The platform is chosen at launch with --notify-platform (slack is the default):
spawn launch --name training --slack-workspace <TENANT_ID> --notify-platform teams --ttl 8h
spawn launch --name training --slack-workspace <GUILD_ID> --notify-platform discord --ttl 8h--slack-workspace carries the workspace ID for every platform. The same events fire. See Teams Setup and Discord Setup for configuration; Discord delivers to the channel webhook as embeds.
Troubleshooting โ
Not receiving DMs: Check that the instance was launched with --slack-workspace (or the tag spawn:slack-workspace-id is set), and that you've run /spore notify <nickname> for your Slack user.
Receiving duplicate notifications: Two Slack apps (/spore and /prism) may both be registered for the same workspace. The spawn:notify-command tag routes notifications to one app's config. There is no launch flag for it: spawn sets it to /spore whenever --slack-workspace is given.