Skip to content

Commit 0491f3a

Browse files
committed
update API schema with change from 'minutes' to 'seconds'
1 parent ead7be9 commit 0491f3a

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

taskbadger.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ components:
728728
minimum: 1
729729
nullable: true
730730
description: Maximum time to allow between task updates before considering
731-
the task stale. (seconds)
731+
the task stale. Only applies when task is in a running state. (seconds)
732732
StatusEnum:
733733
enum:
734734
- pending
@@ -825,7 +825,7 @@ components:
825825
minimum: 1
826826
nullable: true
827827
description: Maximum time to allow between task updates before considering
828-
the task stale. (seconds)
828+
the task stale. Only applies when task is in a running state. (seconds)
829829
url:
830830
type: string
831831
readOnly: true
@@ -906,7 +906,7 @@ components:
906906
minimum: 1
907907
nullable: true
908908
description: Maximum time to allow between task updates before considering
909-
the task stale. (seconds)
909+
the task stale. Only applies when task is in a running state. (seconds)
910910
required:
911911
- name
912912
securitySchemes:

taskbadger/internal/models/patched_task_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PatchedTaskRequest:
3030
max_runtime (Union[Unset, None, int]): Maximum duration the task can be running for before being considered
3131
failed. (seconds)
3232
stale_timeout (Union[Unset, None, int]): Maximum time to allow between task updates before considering the task
33-
stale. (seconds)
33+
stale. Only applies when task is in a running state. (seconds)
3434
"""
3535

3636
name: Union[Unset, str] = UNSET

taskbadger/internal/models/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Task:
3838
max_runtime (Union[Unset, None, int]): Maximum duration the task can be running for before being considered
3939
failed. (seconds)
4040
stale_timeout (Union[Unset, None, int]): Maximum time to allow between task updates before considering the task
41-
stale. (seconds)
41+
stale. Only applies when task is in a running state. (seconds)
4242
"""
4343

4444
id: str

taskbadger/internal/models/task_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TaskRequest:
3030
max_runtime (Union[Unset, None, int]): Maximum duration the task can be running for before being considered
3131
failed. (seconds)
3232
stale_timeout (Union[Unset, None, int]): Maximum time to allow between task updates before considering the task
33-
stale. (seconds)
33+
stale. Only applies when task is in a running state. (seconds)
3434
"""
3535

3636
name: str

0 commit comments

Comments
 (0)