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

Automatically set CalcInfo.uuid in CalcJob.run #2874

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented May 14, 2019

Fixes #2872

The uuid field in the CalcInfo data structure which is built and
returned by the CalcJob.prepare_for_submission implementation, is used
subsequently by the engine to create the remote working directory.
Previously, the implementer of prepare_for_submission was required to
set it, but this always boiled down to setting it to the UUID of the
process node. Since this is the only behavior that should happen anyway,
we might as well have the engine take care of this, making the
implementation of the prepare_for_submission for plugins simpler.

@sphuber sphuber requested a review from giovannipizzi May 14, 2019 11:55
@coveralls
Copy link

coveralls commented May 14, 2019

Coverage Status

Coverage increased (+0.04%) to 72.705% when pulling c7f23fb on sphuber:fix_2872_automatically_set_calcinfo_uuid into a7d6e24 on aiidateam:develop.

The `uuid` field in the `CalcInfo` data structure which is built and
returned by the `CalcJob.prepare_for_submission` implementation, is used
subsequently by the engine to create the remote working directory.
Previously, the implementer of `prepare_for_submission` was required to
set it, but this always boiled down to setting it to the UUID of the
process node. Since this is the only behavior that should happen anyway,
we might as well have the engine take care of this, making the
implementation of the `prepare_for_submission` for plugins simpler.
@sphuber sphuber force-pushed the fix_2872_automatically_set_calcinfo_uuid branch from d58fb18 to c7f23fb Compare May 14, 2019 12:12
@sphuber sphuber merged commit 69fa013 into aiidateam:develop May 14, 2019
@sphuber sphuber deleted the fix_2872_automatically_set_calcinfo_uuid branch May 14, 2019 13:00
unkcpz pushed a commit to unkcpz/aiida-core that referenced this pull request May 20, 2019
The `uuid` field in the `CalcInfo` data structure which is built and
returned by the `CalcJob.prepare_for_submission` implementation, is used
subsequently by the engine to create the remote working directory.
Previously, the implementer of `prepare_for_submission` was required to
set it, but this always boiled down to setting it to the UUID of the
process node. Since this is the only behavior that should happen anyway,
we might as well have the engine take care of this, making the
implementation of the `prepare_for_submission` for plugins simpler.
unkcpz pushed a commit to unkcpz/aiida-core that referenced this pull request May 20, 2019
The `uuid` field in the `CalcInfo` data structure which is built and
returned by the `CalcJob.prepare_for_submission` implementation, is used
subsequently by the engine to create the remote working directory.
Previously, the implementer of `prepare_for_submission` was required to
set it, but this always boiled down to setting it to the UUID of the
process node. Since this is the only behavior that should happen anyway,
we might as well have the engine take care of this, making the
implementation of the `prepare_for_submission` for plugins simpler.
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.

Set the CalcInfo.uuid automatically
3 participants