Skip to content

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Oct 16, 2025

Description:

Updates script component documentation to reflect the breaking change in default max_runs behavior for queued scripts.

Changes:

  • Documents new default max_runs: 5 for queued mode (was unlimited)
  • Clarifies the semantics: max_runs specifies max total instances (including the running one)
  • Default allows 5 total instances: 1 running + 4 queued
  • Adds example showing how to override the default if more capacity is needed
  • Notes that additional calls are rejected with a warning when limit is reached
  • Parallel mode unchanged (still defaults to 0/unlimited)

Related issue (if applicable): N/A - Breaking change documentation

Pull request in esphome with YAML changes (if applicable):

Checklist:

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /components/index.rst when creating new documents for new components or cookbook.

Copy link

netlify bot commented Oct 16, 2025

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 1972bf1
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/68f536e4ee17cc0008d02e4c
😎 Deploy Preview https://deploy-preview-5492--esphome.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.

@bdraco bdraco marked this pull request as ready for review October 17, 2025 00:00
@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 00:00
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR documents a breaking change to the max_runs default behavior for queued scripts in ESPHome. The key change is that queued mode now defaults to max_runs: 5 (allowing 1 running + 4 queued instances) instead of unlimited runs, with additional calls rejected when the limit is reached.

Key Changes

  • Documents new default max_runs: 5 for queued mode (previously unlimited)
  • Clarifies that max_runs represents total instances including the running one
  • Adds example demonstrating how to override the default limit

@bdraco bdraco merged commit 7d2c10e into next Oct 19, 2025
4 checks passed
@bdraco bdraco deleted the unbound_script_queue branch October 19, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants