Skip to content

Commit

Permalink
Avoid race condition in task initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuetom committed Nov 19, 2024
1 parent db6019c commit ca9e294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mosaic/core/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ def _sort_dependencies(proxies, deps):

proxies = self._dependencies['_'].values()
tessera_inits = []
for proxy in proxies:
for proxy in list(proxies) + [self]:
tessera_inits.append(proxy._tessera_proxy.init_future)

await asyncio.gather(*tessera_inits)
Expand Down

0 comments on commit ca9e294

Please sign in to comment.