diff --git a/cloudify/plugins/kerchunk.py b/cloudify/plugins/kerchunk.py index aa7d4db0867522c79a81f8be13bf21f78e7b97b7..18ef500d47167deba998d70eb7039fe82f12ab9c 100755 --- a/cloudify/plugins/kerchunk.py +++ b/cloudify/plugins/kerchunk.py @@ -28,7 +28,6 @@ GCLIMIT = 500 async def kerchunk_stream_content(data): - await asyncio.sleep(0) yield data @@ -94,8 +93,9 @@ class KerchunkPass(Plugin): # media_type='application/octet-stream', # ) else: + data = await asyncio.to_thread(lambda: fsmap[key]) resp = StreamingResponse( - kerchunk_stream_content(fsmap[key]), + kerchunk_stream_content(data), media_type="application/octet-stream", ) resp.headers["Cache-control"] = "max-age=604800"