Skip to content

--search_data=quick does not work as intended #2936

@schlunma

Description

@schlunma

Describe the bug
--search_data=quick does not work as intended. The doc says:

When set to quick, search will stop as soon as a result is found.

This is not the case. For example, a recipe which requires fx variables fails if multiple versions of that fx file are available (e.g., from ESGF and locally).

However, setting --search_data=complete fixes this.

I guess the problem is here:

# 'quick' mode: if files are available from a higher
# priority source, do not search lower priority sources.
if self.session["search_data"] == "complete":
try:
check.data_availability(self, log=False)
except InputFilesNotFound:
pass # continue search for data
else:
return # use what has been found so far

Replacing complete with quick should do the trick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfig

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions