Skip to content

Commit c6d0a0f

Browse files
committed
Fix retention period in demos
1 parent 1b8686b commit c6d0a0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/Logging/logging-to-simvue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def simvue_logger_demo(ci: bool) -> None:
1212
tags=["logging"],
1313
folder="/simvue_client_demos",
1414
description="Logging test",
15-
ttl=60 * 60 if ci else -1,
15+
retention_period="1 hour" if ci else None,
1616
)
1717

1818
logger = logging.getLogger(__name__)

examples/OpenFOAM/simvue_openfoam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def custom_parser(file_content: str, **_) -> tuple[dict[str, Any], dict[str, Any
7272
f"open_foam_demo_{uniq_id}",
7373
folder="/simvue_client_demos",
7474
tags=["OpenFOAM"],
75-
ttl=60 * 60 if ci else -1,
75+
retention_period="1 hour" if ci else None,
7676
)
7777
run.add_process(
7878
identifier="OpenFOAM",

examples/Optuna/PyTorch/simvue_optuna_pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def objective(trial):
137137
run.init(
138138
folder="/optuna/tests/%s" % FOLDER_NAME,
139139
metadata=config,
140-
ttl=60 * 60 if ci else -1,
140+
retention_period="1 hour" if ci else None,
141141
)
142142

143143
# Training of the model.

0 commit comments

Comments
 (0)