Skip to content

Commit 911f556

Browse files
committed
async_task is no longer a hard requirement #786
1 parent 755feac commit 911f556

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

openeogeotrellis/backend.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2614,13 +2614,7 @@ def __repr__(self):
26142614
partial_job_status = stac_object.get('openeo:status')
26152615
logger_adapter.debug(f'load_stac({url}): "openeo:status" is "{partial_job_status}"')
26162616

2617-
if partial_job_status == PARTIAL_JOB_STATUS.RUNNING:
2618-
if not supports_async_tasks:
2619-
raise OpenEOApiException(
2620-
message=f"this backend does not support loading unfinished results from {url}"
2621-
f" with load_stac",
2622-
status_code=501)
2623-
2617+
if supports_async_tasks and partial_job_status == PARTIAL_JOB_STATUS.RUNNING:
26242618
job_dependencies.append({
26252619
'partial_job_results_url': url,
26262620
})

0 commit comments

Comments
 (0)