Skip to content

docs(workflows): fix stale FanOutStep docstring claiming sequential-only execution#3639

Merged
mnriem merged 1 commit into
github:mainfrom
jawwad-ali:docs/fan-out-docstring-concurrency
Jul 22, 2026
Merged

docs(workflows): fix stale FanOutStep docstring claiming sequential-only execution#3639
mnriem merged 1 commit into
github:mainfrom
jawwad-ali:docs/fan-out-docstring-concurrency

Conversation

@jawwad-ali

Copy link
Copy Markdown
Contributor

What

The FanOutStep class docstring (src/specify_cli/workflows/steps/fan_out/__init__.py) still claims:

Execution is currently sequential; max_concurrency is accepted but not enforced.

That has been inaccurate since #3224 (feat(workflows): honor max_concurrency in fan-out via a bounded thread pool), which added a real bounded-thread-pool concurrency path to WorkflowEngine._run_fan_out. That PR updated engine.py, base.py, and tests, but the step's own class docstring was never updated, so it now contradicts the code.

Fix

Update the docstring to match the engine's authoritative _run_fan_out docstring:

max_concurrency controls parallelism: <= 1 (the default) runs items sequentially, while > 1 runs up to that many items concurrently on a bounded thread pool (see WorkflowEngine._run_fan_out).

Docstring-only change — no behavior change, no test needed. ruff check clean; import/docstring verified.


AI-assisted: authored with Claude Code. I verified the claim against WorkflowEngine._run_fan_out and commit 20f4306 (#3224).

…nly execution

The FanOutStep class docstring stated that fan-out execution is
"currently sequential" and that `max_concurrency` is "accepted but not
enforced". That has been inaccurate since github#3224, which added a bounded
thread-pool concurrency path to `WorkflowEngine._run_fan_out` that honors
`max_concurrency > 1`.

Update the docstring to match the engine's own `_run_fan_out` docstring:
`max_concurrency <= 1` (the default) runs items sequentially, while `> 1`
runs up to that many items concurrently on a bounded thread pool.
Docstring-only; no behavior change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the FanOutStep docstring to reflect the existing bounded concurrency behavior.

Changes:

  • Documents sequential execution for max_concurrency <= 1.
  • Documents bounded thread-pool execution for values above 1.
Show a summary per file
File Description
src/specify_cli/workflows/steps/fan_out/__init__.py Corrects stale fan-out concurrency documentation.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@mnriem
mnriem merged commit 41a8e07 into github:main Jul 22, 2026
14 checks passed
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.

3 participants