Skip to content

Fix writing index variables for parallel batches #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2020

Conversation

benbovy
Copy link
Member

@benbovy benbovy commented Apr 7, 2020

No description provided.

benbovy added 2 commits April 7, 2020 14:36
Issue when running batches in parallel using a multi-process scheduler:
model state is not returned by execution of dask delayed functions, so
the state was lost.

Fix by calling store.write_index_vars for each model run. It is not a
big deal to write those datasets many times (should be same values
across all simulations).
@benbovy benbovy merged commit 339e1a5 into master Apr 7, 2020
@benbovy benbovy deleted the fix-index-vars-parallel-processes branch April 7, 2020 12:53
@benbovy benbovy mentioned this pull request Apr 7, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant