Skip to content

perf(output): avoid rezipping output for managed studies - #3369

Merged
MartinBelthle merged 17 commits into
devfrom
perfs/output-retrieval
Aug 27, 2026
Merged

perf(output): avoid rezipping output for managed studies#3369
MartinBelthle merged 17 commits into
devfrom
perfs/output-retrieval

Conversation

@MartinBelthle

@MartinBelthle MartinBelthle commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Solves the performance issue inside [ANT-5556] but not the design flaws

@MartinBelthle MartinBelthle self-assigned this Aug 25, 2026
@MartinBelthle MartinBelthle changed the title perfs(output): avoid rezipping output for managed studies perf(output): avoid rezipping output for managed studies Aug 25, 2026
@pull-request-size pull-request-size Bot added size/L and removed size/M labels Aug 25, 2026
@MartinBelthle
MartinBelthle marked this pull request as ready for review August 25, 2026 15:14
@MartinBelthle
MartinBelthle requested a review from a team August 25, 2026 15:14
Comment thread antarest/output/storage/file/abstract_storage.py
Comment thread antarest/launcher/service.py
Comment thread antarest/launcher/service.py Outdated
# - be more explicit
# - not affect internal studies
if job_launch_params.archive_output:
if not is_study_managed:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this isn't not is_study_managed and job_launch_params.archive_output ? I get that archive_output is depreceated but should still be supported untill it's removed no ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if we do this if not is_study_managed or not job_launch_params.auto_unzip then we won't need to run an archive on it later, I mean we could get rid of :

            if output.is_dir() and not auto_unzip:
                # This only happens for managed studies (not obvious due to the leaky workflow)
                self.archive_output(uuid, output_id)

@MartinBelthle MartinBelthle Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The archive_output did not make any sense (always True, non-editable in the front). The only parameter that matters is auto_unzip where if it is False the output is left archived and otherwise it is automatically unarchived. So I deprecated it.

@MartinBelthle MartinBelthle Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And for the 2nd comment, the if actually matters as now the output always arrives as a folder inside the study for managed studies (except for the -z option but we do not use it) so if the user did not ask for automatic unzip we have to re-zip it

Comment thread antarest/launcher/service.py Outdated
Comment thread antarest/launcher/service.py Outdated
@MartinBelthle
MartinBelthle merged commit deb30b1 into dev Aug 27, 2026
11 of 13 checks passed
@MartinBelthle
MartinBelthle deleted the perfs/output-retrieval branch August 27, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants