Skip to content

Commit

Permalink
Skip registering already registered stores (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpauloski committed May 29, 2024
1 parent f5fcf49 commit f0cd487
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion colmena/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def get_store(
store = proxystore.store.get_store(name)
if store is None and config is not None:
store = Store.from_config(config)
proxystore.store.register_store(store)
# If the config has `register=True`, then the above line will
# register the store for us. So we set `exist_ok=True` so the next
# line does not raise an error. This only applies for
# ProxyStore v0.6.5 and later.
proxystore.store.register_store(store, exist_ok=True)
return store


Expand Down

0 comments on commit f0cd487

Please sign in to comment.