-
-
Notifications
You must be signed in to change notification settings - Fork 804
Docs: Fixes incorrect retrieving runs from batchTrigger #2427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -75,7 +75,7 @@ export const myTask = task({ | |||||||||||||||||||||
}); | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
Reminder: you can only have up to 5 tags per run. If you call `tags.add()` and the total number of tags will be more than 5 we log an error and ignore the new tags. That includes tags from triggering and from inside the run function. | ||||||||||||||||||||||
Reminder: you can only have up to 10 tags per run. If you call `tags.add()` and the total number of tags will be more than 10 we log an error and ignore the new tags. That includes tags from triggering and from inside the run function. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify there are no remaining references to a 5-tag limit elsewhere To avoid conflicting guidance, scan the repo for stale mentions of a 5-tag maximum. 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Look for common phrasings of the old 5-tag limit across docs
rg -n -C2 -S -g '!**/node_modules/**' -g '!**/dist/**' -e \
$'up to 5 tags|maximum of 5 tags|max(imum)? 5 tags|5 tags per run|no more than 5 tags|limit of 5 tags|only 5 tags' || true Length of output: 1342 Update stale 5-tag references in the OpenAPI spec We still have lingering “5 tags” limits in the v3 OpenAPI YAML. Please update them to reflect the new 10-tag maximum. • docs/v3-openapi.yaml:1610 Suggested diffs: --- a/docs/v3-openapi.yaml
+++ b/docs/v3-openapi.yaml
@@ -1608,7 +1608,7 @@
- You can set up to 5 tags per run, they must be less than 64 characters each.
+ You can set up to 10 tags per run, they must be less than 64 characters each.
@@ -1831,7 +1831,7 @@
- description: A tag must be between 1 and 64 characters, a run can have up to 5 tags attached to it.
+ description: A tag must be between 1 and 64 characters, a run can have up to 10 tags attached to it.
@@ -2008,7 +2008,7 @@
- description: A tag must be between 1 and 64 characters, a run can have up to 5 tags attached to it.
+ description: A tag must be between 1 and 64 characters, a run can have up to 10 tags attached to it. 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
### Propagating tags to child runs | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable name collision:
batch
shadows the imported moduleconst batch = await batch.retrieve(...)
shadows the module/namespace and will either be invalid TS or highly confusing. Rename the local variable.Apply this diff:
Additionally, ensure the snippet (or surrounding text) shows where
batch
comes from, e.g.:🤖 Prompt for AI Agents