Skip to content

Commit 858d600

Browse files
authored
fix update_task bug (#626)
1 parent ec5a0a0 commit 858d600

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

skyvern/forge/sdk/db/client.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,13 @@ async def update_task(
379379
max_steps_per_run: int | None = None,
380380
organization_id: str | None = None,
381381
) -> Task:
382-
if status is None and extracted_information is None and failure_reason is None and errors is None:
382+
if (
383+
status is None
384+
and extracted_information is None
385+
and failure_reason is None
386+
and errors is None
387+
and max_steps_per_run is None
388+
):
383389
raise ValueError(
384390
"At least one of status, extracted_information, or failure_reason must be provided to update the task"
385391
)

0 commit comments

Comments
 (0)