Skip to content

Commit

Permalink
Let ProxyStore determine a unique key
Browse files Browse the repository at this point in the history
This is to fix problems where multiple workers generate the same key
  • Loading branch information
WardLT committed Feb 10, 2022
1 parent b3cd0d1 commit c358402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colmena/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _serialize_and_proxy(value, evict=False):
name=self.proxystore_name,
**self.proxystore_kwargs
)
value_proxy = store.proxy(value, key=str(id(value)), evict=evict)
value_proxy = store.proxy(value, evict=evict)
logger.debug(f'Proxied object of type {type(value)} with id={id(value)}')
# Serialize the proxy with Colmena's utilities. This is
# efficient since the proxy is just a reference and metadata
Expand Down

0 comments on commit c358402

Please sign in to comment.