[PR #289] [MERGED] docs: add missing random imports in concurrency examples #294

Closed
opened 2026-02-16 02:17:09 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/workflows-py/pull/289
Author: @mrbadri
Created: 1/19/2026
Status: Merged
Merged: 1/19/2026
Merged by: @adrianlyjak

Base: mainHead: docs/workflows-concurrency-random-import


📝 Commits (1)

  • 4cd8a6b docs: add missing random imports in concurrency examples

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 docs/src/content/docs/llamaagents/workflows/concurrent_execution.md (+2 -0)

📄 Description

Description

This PR fixes a missing import in the “Concurrent execution of workflows” documentation.

What changed

  • Added import random to the Python code blocks that use random.randint(...) in the Emitting multiple events and Collecting events examples.

Why

The examples referenced random.randint(...) but didn’t import random, which causes a NameError when readers copy/paste and run the snippets.

Scope

  • Documentation-only change (no runtime / library code impacted).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/workflows-py/pull/289 **Author:** [@mrbadri](https://github.com/mrbadri) **Created:** 1/19/2026 **Status:** ✅ Merged **Merged:** 1/19/2026 **Merged by:** [@adrianlyjak](https://github.com/adrianlyjak) **Base:** `main` ← **Head:** `docs/workflows-concurrency-random-import` --- ### 📝 Commits (1) - [`4cd8a6b`](https://github.com/run-llama/workflows-py/commit/4cd8a6b4f7479c00c5a5e4fb39fc66ed4b3de9ca) docs: add missing random imports in concurrency examples ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/src/content/docs/llamaagents/workflows/concurrent_execution.md` (+2 -0) </details> ### 📄 Description ### Description This PR fixes a missing import in the “Concurrent execution of workflows” documentation. #### What changed * Added `import random` to the Python code blocks that use `random.randint(...)` in the **Emitting multiple events** and **Collecting events** examples. #### Why The examples referenced `random.randint(...)` but didn’t import `random`, which causes a `NameError` when readers copy/paste and run the snippets. #### Scope * Documentation-only change (no runtime / library code impacted). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 02:17:09 -05:00
yindo closed this issue 2026-02-16 02:17:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/workflows-py#294