Skip to content

[pipeline] add pipeline authoring guide + async/auto_stop doc fixes - #1578

Merged
mthrok merged 1 commit into
mainfrom
update-prompts
Jul 1, 2026
Merged

[pipeline] add pipeline authoring guide + async/auto_stop doc fixes#1578
mthrok merged 1 commit into
mainfrom
update-prompts

Conversation

@mthrok

@mthrok mthrok commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Add a from-scratch SPDL pipeline authoring guide (tools/skills/authoring/building_pipelines.md) covering stage decomposition by operation nature, concurrency budgeting, spdl.io for media, and multi-threading-in-subprocess for production. Its minimal example shows the build-once / re-iterate-per-epoch pattern.

Clarify async stage handling in the pipeline reference docs: async functions can be passed to .pipe() directly and must not be wrapped in asyncio.run(), which only adds per-item event-loop init/finalize overhead and forces the work onto worker threads instead of running as cheap cooperative coroutines on the shared event loop.

Mark auto_stop() as obsolete in the optimization reference docs — a Pipeline is built once and re-iterated each epoch without it.

Add a from-scratch SPDL pipeline authoring guide (`tools/skills/authoring/building_pipelines.md`) covering stage decomposition by operation nature, concurrency budgeting, `spdl.io` for media, and multi-threading-in-subprocess for production. Its minimal example shows the build-once / re-iterate-per-epoch pattern.

Clarify async stage handling in the pipeline reference docs: async functions can be passed to `.pipe()` directly and must not be wrapped in `asyncio.run()`, which only adds per-item event-loop init/finalize overhead and forces the work onto worker threads instead of running as cheap cooperative coroutines on the shared event loop.

Mark `auto_stop()` as obsolete in the optimization reference docs — a `Pipeline` is built once and re-iterated each epoch without it.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 1, 2026
@meta-codesync

meta-codesync Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D110348146. (Because this pull request was imported automatically, there will not be any future comments.)

@mthrok
mthrok marked this pull request as ready for review July 1, 2026 21:34
@mthrok
mthrok merged commit 70be9d0 into main Jul 1, 2026
111 of 112 checks passed
@mthrok
mthrok deleted the update-prompts branch July 1, 2026 21:34
mthrok added a commit that referenced this pull request Jul 6, 2026
…1583)

(Followup of #1578, which
did not include the main guideline file.)

Add a from-scratch SPDL pipeline authoring guide
(`tools/skills/authoring/building_pipelines.md`) covering stage
decomposition by operation nature, concurrency budgeting, `spdl.io` for
media, and multi-threading-in-subprocess for production. Its minimal
example shows the build-once / re-iterate-per-epoch pattern.

Clarify async stage handling in the pipeline reference docs: async
functions can be passed to `.pipe()` directly and must not be wrapped in
`asyncio.run()`, which only adds per-item event-loop init/finalize
overhead and forces the work onto worker threads instead of running as
cheap cooperative coroutines on the shared event loop.

Mark `auto_stop()` as obsolete in the optimization reference docs — a
`Pipeline` is built once and re-iterated each epoch without it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant