Skip to content

Commit

Permalink
feat(api-launcher): add default values for time_limit and nb_cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Mar 11, 2024
1 parent 66b51a0 commit 75b43e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions antarest/launcher/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ class LauncherParametersDTO(BaseModel):
# The reason is that it's stored in json format in database and deserialized using the latest class version
# If compatibility is to be broken, an (alembic) data migration script should be added
adequacy_patch: t.Optional[t.Dict[str, t.Any]] = None
nb_cpu: t.Optional[int] = None
nb_cpu: t.Optional[int] = 22 # Default value set to 22 cores
post_processing: bool = False
time_limit: t.Optional[int] = None # 3600 ≤ time_limit < 864000 (10 days)
time_limit: t.Optional[int] = 240 * 3600 # Default value set to 240 hours (in seconds)
xpansion: t.Union[XpansionParametersDTO, bool, None] = None
xpansion_r_version: bool = False
archive_output: bool = True
auto_unzip: bool = True
output_suffix: t.Optional[str] = None
other_options: t.Optional[str] = None

# add extensions field here

@classmethod
Expand Down

0 comments on commit 75b43e9

Please sign in to comment.