Skip to content

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:

    sh
    spawn logs training --which spored

    Logs 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-url and --spot-webhook-url make spored POST a fire-once, best-effort notice to a URL you run (a queue, a CI hook, your own service). --webhook-correlation echoes an opaque value of yours in the payload, and --webhook-timeout caps the request. See the spawn launch reference.

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 โ€‹

EventWhenMessage
TTL warning5 min before TTL expiresโฑ๏ธ name terminates in 5 minutes
TTL expiredAt TTL๐Ÿ”ด name has terminated โ€” scheduled end time reached
Idle warning5 min before idle timeout๐Ÿ’ค name will stop in 5 minutes โ€” no activity
Idle stoppedAt idle timeout (default)โน๏ธ name has stopped โ€” idle timeout reached
Idle hibernatedAt idle timeout with --on-idle hibernate๐Ÿ’ค name has hibernated โ€” idle timeout reached
Idle stop failedThe idle stop or hibernate failed; the instance is still runningโ„น๏ธ name: idle_stop_failed
CompletionCompletion file detected (a --command writes it when it exits)โœ… name has completed
Spot interruptSpot interruption notice receivedโš ๏ธ name received a Spot interruption notice
Pre-stop startPre-stop hook begins๐Ÿ”„ name is running its shutdown task
Pre-stop failedThe pre-stop hook exited with an error๐ŸŸ  name shutdown task FAILED โ€” output may NOT have been saved
Pre-stop timeoutThe pre-stop hook ran past its timeout๐ŸŸ  name shutdown task TIMED OUT โ€” output may be incomplete
FSx mount failedThe FSx filesystem could not be mountedโ„น๏ธ name: fsx_mount_failed
FSx DRA failedThe FSx link to S3 (data repository association) could not be set upโ„น๏ธ name: fsx_dra_failed
Region vacatedNo 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:

sh
spawn launch --name training --slack-workspace T03NE3GTY --ttl 8h

Subscribe your user:

sh
/spore notify training

Or subscribe via CLI:

sh
spawn notify register --platform slack --user you@lab.edu --workspace-id T03NE3GTY \
  --instance i-0abc123 --nickname training

Channel 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:

sh
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:

sh
/spore notify rstudio

Unsubscribe: /spore unnotify rstudio

Responding to warnings โ€‹

A TTL warning comes 5 minutes before the deadline. To get more time, extend it:

sh
spawn extend training 4h

With 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):

sh
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.