Skip to content

Commit

Permalink
[batch] Shield extracting the rootfs of an image (#10708)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-goldstein authored Jul 26, 2021
1 parent 2f04418 commit 3c4e856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batch/batch/worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ async def localize_rootfs():
self.rootfs_path = f'/host/rootfs/{self.image_id}'
async with worker.rootfs_locks[self.image_id]:
if not os.path.exists(self.rootfs_path):
await self.extract_rootfs()
await asyncio.shield(self.extract_rootfs())
log.info(f'Added expanded image to cache: {self.image_ref_str}, ID: {self.image_id}')

with self.step('pulling'):
Expand Down

0 comments on commit 3c4e856

Please sign in to comment.