Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/translator_tom/models/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ class Query(TOMBase):
downstream sources (e.g., ARS -> ARAs -> KPs).
"""

timeout: int | None = None
"""Custom time in seconds that the client is willing to wait for a response.
After this time has elapsed, the service MAY consider the query
failed and respond with logs indicating as such.
If the service knows it cannot respond in the given time, it MAY
respond with an HTTP 409 and a response explaining its time capabilities.
Negative values SHOULD be interpreted as disabling any default
timeout the server implements.
"""

@property
def workflow_list(self) -> list[Operation]:
"""Get the workflow operations as a guaranteed list, even if they are represented as None."""
Expand Down
Loading