Skip to content

Commit 7225715

Browse files
committed
add comment for object timeout & change value to be more reasonable
1 parent 46439d2 commit 7225715

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/blueprint_with_build_context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
BLUEPRINT_POLL_TIMEOUT_S = 10 * 60
4242
BLUEPRINT_POLL_MAX_ATTEMPTS = 600
4343

44-
# make context available for a week (this is a demo value to show you can configure this value)
45-
ONE_WEEK = timedelta(weeks=1)
44+
# configure object storage ttl for the build context
45+
BUILD_CONTEXT_TTL = timedelta(days=1)
4646

4747

4848
async def recipe(ctx: RecipeContext) -> RecipeOutput:
@@ -61,7 +61,7 @@ async def recipe(ctx: RecipeContext) -> RecipeOutput:
6161
storage_obj = await sdk.storage_object.upload_from_dir(
6262
tmp_path,
6363
name=unique_name("example-build-context"),
64-
ttl=ONE_WEEK,
64+
ttl=BUILD_CONTEXT_TTL,
6565
)
6666
cleanup.add(f"storage_object:{storage_obj.id}", storage_obj.delete)
6767

0 commit comments

Comments
 (0)