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

load_stac with invalid/unreachable url: job stuck in status "created" #505

Open
soxofaan opened this issue Sep 8, 2023 · 0 comments
Open

Comments

@soxofaan
Copy link
Member

soxofaan commented Sep 8, 2023

(found out while playing with aggregator crossbackend feature Open-EO/openeo-aggregator#115)

using load_stac, with an invalid url (or one where auth fails): job.start fails, but status of job stays created and never reaches status error.

e.g.

import openeo
con = openeo.connect("openeo-dev.vito.be")
con.authenticate_oidc()

cube = con.load_stac("https://example.com/invalid/url")
cube = cube.save_result(format="netCDF")

job = cube.create_job()
print(job.job_id, job.status())
# -> 'j-b60ea2114b804e419b619a4320d11c20', 'created'

job.start()
# ->  OpenEoApiError: [500] Internal: Server error: HTTPError('404 Client Error: Not Found for url: https://example.com/invalid/url') (ref: r-2438fbe2e26c4eb88335ddaf80f344b1)

print(job.status())
# -> created

This breaks situations where you have multiple jobs depending on each other (e.g. crossbackend execution): the "toplevel" batch job will never be able to finish, because it is stuck waiting for a dependency to reach "finished" or "error"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant