|
|
@@ -259,7 +259,7 @@ class BuildManager:
|
|
|
|
|
|
Parameters:
|
|
|
timeout (int): Maximum time to wait in seconds. 0 means wait
|
|
|
- indefinitely.
|
|
|
+ indefinitely.
|
|
|
|
|
|
Returns:
|
|
|
str: The ID of the next build to be processed, or None if timeout.
|
|
|
@@ -288,10 +288,13 @@ class BuildManager:
|
|
|
self.__key_from_build_id(build_id=build_id)
|
|
|
)
|
|
|
|
|
|
+ # =====================================================================
|
|
|
+ # MODIFICATION: Increased default TTL to 4 weeks (2,419,200 seconds)
|
|
|
+ # =====================================================================
|
|
|
def __insert_build_info(self,
|
|
|
build_id: str,
|
|
|
build_info: BuildInfo,
|
|
|
- ttl_sec: int = 86400) -> None:
|
|
|
+ ttl_sec: int = 2419200) -> None:
|
|
|
"""
|
|
|
Insert the build information into the datastore.
|
|
|
|
|
|
@@ -299,7 +302,7 @@ class BuildManager:
|
|
|
build_id (str): The ID of the build.
|
|
|
build_info (BuildInfo): The build information to store.
|
|
|
ttl_sec (int): Time-to-live (TTL) in seconds after which the
|
|
|
- build expires.
|
|
|
+ build expires (Default: 4 weeks).
|
|
|
"""
|
|
|
if self.build_exists(build_id=build_id):
|
|
|
raise ValueError(f"Build with id {build_id} already exists")
|