Skip to content

Commit 92ab210

Browse files
authored
use new retrieve (#65)
1 parent 8321a09 commit 92ab210

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cads_worker/worker.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,7 @@ def submit_workflow(
252252
cache_tmp_path=cache_tmp_path,
253253
**config,
254254
)
255-
request = {k: request[k] for k in sorted(request.keys())}
256-
cached_retrieve = cacholote.cacheable(
257-
adaptor.retrieve,
258-
collection_id=collection_id,
259-
)
260-
result = cached_retrieve(request=request)
255+
result = adaptor.retrieve(request)
261256
except Exception as err:
262257
logger.exception(job_id=job_id, event_type="EXCEPTION")
263258
context.add_user_visible_error(f"The job failed with: {err.__class__.__name__}")

0 commit comments

Comments
 (0)