Skip to content

Commit

Permalink
feat: Add max-value of 100 to parallelism
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Sep 4, 2024
1 parent 50c8e66 commit c54f172
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agents-api/agents_api/autogen/Tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class Main(BaseModel):
"""
The initial value of the reduce expression
"""
parallelism: Annotated[int | None, Field(None, ge=1)]
parallelism: Annotated[int | None, Field(None, ge=1, le=100)]
"""
Whether to run the reduce expression in parallel and how many items to run in each batch
"""
Expand Down Expand Up @@ -391,7 +391,7 @@ class MainModel(BaseModel):
"""
The initial value of the reduce expression
"""
parallelism: Annotated[int | None, Field(None, ge=1)]
parallelism: Annotated[int | None, Field(None, ge=1, le=100)]
"""
Whether to run the reduce expression in parallel and how many items to run in each batch
"""
Expand Down
1 change: 1 addition & 0 deletions agents-api/tests/test_execution_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ async def _(


for p in [1, 3, 5]:

@test(f"workflow: map reduce step parallel (parallelism={p})")
async def _(
client=cozo_client,
Expand Down
1 change: 1 addition & 0 deletions sdks/ts/src/api/schemas/$Tasks_CreateTaskRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const $Tasks_CreateTaskRequest = {
type: "number",
description: `Whether to run the reduce expression in parallel and how many items to run in each batch`,
format: "uint16",
maximum: 100,
minimum: 1,
},
},
Expand Down
1 change: 1 addition & 0 deletions sdks/ts/src/api/schemas/$Tasks_PatchTaskRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export const $Tasks_PatchTaskRequest = {
type: "number",
description: `Whether to run the reduce expression in parallel and how many items to run in each batch`,
format: "uint16",
maximum: 100,
minimum: 1,
},
},
Expand Down
1 change: 1 addition & 0 deletions sdks/ts/src/api/schemas/$Tasks_Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const $Tasks_Task = {
type: "number",
description: `Whether to run the reduce expression in parallel and how many items to run in each batch`,
format: "uint16",
maximum: 100,
minimum: 1,
},
},
Expand Down
1 change: 1 addition & 0 deletions sdks/ts/src/api/schemas/$Tasks_UpdateTaskRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export const $Tasks_UpdateTaskRequest = {
type: "number",
description: `Whether to run the reduce expression in parallel and how many items to run in each batch`,
format: "uint16",
maximum: 100,
minimum: 1,
},
},
Expand Down

0 comments on commit c54f172

Please sign in to comment.