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 13, 2024
1 parent 7021db3 commit 9ebbe29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion antarest/launcher/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ class LauncherParametersDTO(BaseModel):
adequacy_patch: t.Optional[t.Dict[str, t.Any]] = None
nb_cpu: t.Optional[int] = None
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 9ebbe29

Please sign in to comment.