Skip to content

Commit a892e82

Browse files
authored
sort request to optimize cache (#36)
1 parent 0f09426 commit a892e82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cads_worker/worker.py

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def submit_workflow(
117117
with tempfile.TemporaryDirectory() as tmpdir:
118118
os.chdir(tmpdir)
119119
try:
120+
request = {k: request[k] for k in sorted(request.keys())}
120121
result = cacholote.cacheable(adaptor.retrieve)(request=request)
121122
except Exception:
122123
logger.exception(job_id=job_id, event_type="EXCEPTION")

0 commit comments

Comments
 (0)