Skip to content

Document ELECTRIC_SHAPE_SUSPEND_AFTER in the config reference - #4793

Merged
alco merged 2 commits into
mainfrom
docs/suspend-after-config
Sep 2, 2026
Merged

Document ELECTRIC_SHAPE_SUSPEND_AFTER in the config reference#4793
alco merged 2 commits into
mainfrom
docs/suspend-after-config

Conversation

@alco

@alco alco commented Sep 2, 2026

Copy link
Copy Markdown
Member

The config reference was out of date since #4284 split hibernation from suspension:

  • ELECTRIC_SHAPE_HIBERNATE_AFTER now only controls when an idle consumer hibernates.
  • ELECTRIC_SHAPE_SUSPEND_AFTER (default 10m) is the additional idle time after hibernation before a consumer is terminated when ELECTRIC_SHAPE_SUSPEND_CONSUMER=true. It had no docs entry.

This rewrites the ELECTRIC_SHAPE_SUSPEND_CONSUMER and ELECTRIC_SHAPE_HIBERNATE_AFTER entries to describe the two-stage behaviour and adds an entry for ELECTRIC_SHAPE_SUSPEND_AFTER.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GDTua3WEeQeDbcDjVTP395

Since #4284 consumers always hibernate after ELECTRIC_SHAPE_HIBERNATE_AFTER
and, when suspension is enabled, terminate a further
ELECTRIC_SHAPE_SUSPEND_AFTER later. The docs still described
ELECTRIC_SHAPE_HIBERNATE_AFTER as the suspend timeout and had no entry
for the new variable.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GDTua3WEeQeDbcDjVTP395
@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit b0d9b1c
🔍 Latest deploy log https://app.netlify.com/projects/electric-next/deploys/6a9878b96614d60008a3e9e4
😎 Deploy Preview https://deploy-preview-4793--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75ad310501

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread website/docs/sync/api/config.md
Shapes with subquery dependencies and shapes other shapes depend on
only ever hibernate, even with ELECTRIC_SHAPE_SUSPEND_CONSUMER enabled.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GDTua3WEeQeDbcDjVTP395
@alco
alco merged commit 018ba8b into main Sep 2, 2026
3 of 7 checks passed
@alco
alco deleted the docs/suspend-after-config branch September 2, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant