Skip to content
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

Remove the async function from aiida.work.run #1040

Merged
merged 3 commits into from
Jan 15, 2018

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jan 15, 2018

Fixes #946

The async function relied on the ParallelEngine of plum to
launch multiple processes in parallel, however, during testing
we discovered that the orm is not thread safe and race conditions
could lead to unexpected behavior. The future version of plum
that is currently in development for the renewed workflow engine
will not support this for this reason. Therefore we remove this
function here altogether in preparation for the improved workchain
engine.

The async function relied on the ParallelEngine of plum to
launch multiple processes in parallel, however, during testing
we discovered that the orm is not thread safe and race conditions
could lead to unexpected behavior. The future version of plum
that is currently in development for the renewed workflow engine
will not support this for this reason. Therefore we remove this
function here altogether in preparation for the improved workchain
engine.

# return process_class(*args, **inputs),
# else:
# return process_class(*args, **inputs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a mistake

@sphuber
Copy link
Contributor Author

sphuber commented Jan 15, 2018

@muhrin please check if you are okay with the changes

@sphuber sphuber merged commit 9951ce3 into aiidateam:release_v0.11.0 Jan 15, 2018
@sphuber sphuber deleted the fix_946_remove_async branch January 15, 2018 19:46
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.

2 participants