Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation warning with BackendLookupFailure in crossbackend mode #154

Open
soxofaan opened this issue Sep 3, 2024 · 0 comments
Open

Validation warning with BackendLookupFailure in crossbackend mode #154

soxofaan opened this issue Sep 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@soxofaan
Copy link
Member

soxofaan commented Sep 3, 2024

When submitting a job with collections on separate upstream backends, but with "crossbackend" feature enabled, the user still sees a validation warning about "Collections across multiple backends" because validation does not take the "crossbackend" job option into account.

bbox = {"west": 3, "south": 51, "east": 3.01, "north": 51.01}
cube1 = connection.load_collection(
    "ESA_WORLDCEREAL_WINTERCEREALS",
    spatial_extent=bbox,
    temporal_extent="2024-08",
)
cube2 = connection.load_collection(
    "SENTINEL2_L2A",
    spatial_extent=bbox,
    temporal_extent="2024-08",
)
cube = cube1.merge_cubes(cube2)

job = cube.create_job(
    job_options={"split_strategy": "crossbackend"}
)

the auto-validation feature of the python client triggers this warning from create_job:

Preflight process graph validation raised: [InternalValidationFailure] Validation failed: BackendLookupFailureException(status_code=400, code='BackendLookupFailure', message="Collections across multiple backends ({'cdse', 'terrascope'}): {'SENTINEL2_L2A', 'ESA_WORLDCEREAL_WINTERCEREALS'}.", id='r-240903d69117456082baea6867c5f3c3')

The validation warning is not blocking at the moment, but unnecessary and confusing to the user

@soxofaan soxofaan added the bug Something isn't working label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant