Skip to content

Commit

Permalink
Increase restart timeout, switch to osparc filecomms tools
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Nov 26, 2024
1 parent 2f9ac10 commit d51c2dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 75 deletions.
9 changes: 4 additions & 5 deletions docker_scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import pydantic as pyda
import pydantic_settings
from osparc_filecomms import tools

import dakota_start
import tools

logging.basicConfig(
level=logging.INFO, format="[%(filename)s:%(lineno)d] %(message)s"
Expand All @@ -16,7 +16,7 @@
CONF_SCHEMA_KEY = "conf_json_schema"

DEFAULT_FILE_POLLING_INTERVAL = 0.1
RESTART_ON_ERROR_MAX_TIME = 10.0
RESTART_ON_ERROR_MAX_TIME = 3600.0
RESTART_ON_ERROR_POLLING_INTERVAL = 1.0


Expand All @@ -36,6 +36,7 @@ def main():
dakservice = dakota_start.DakotaService(settings)
dakservice.start()


class DakotaDynamicSettings:
def __init__(self):
self._settings = self.DakotaMainSettings()
Expand Down Expand Up @@ -80,9 +81,7 @@ class DakotaMainSettings(pydantic_settings.BaseSettings):
output_path: pyda.DirectoryPath = pyda.Field(
alias="DY_SIDECAR_PATH_OUTPUTS"
)
restart_on_error: bool = pyda.Field(
default=False
)
restart_on_error: bool = pyda.Field(default=False)
restart_on_error_max_time: float = pyda.Field(
default=RESTART_ON_ERROR_MAX_TIME, ge=0
)
Expand Down
70 changes: 0 additions & 70 deletions docker_scripts/tools.py

This file was deleted.

0 comments on commit d51c2dd

Please sign in to comment.