-
Notifications
You must be signed in to change notification settings - Fork 37
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
Execution hooks (core features) #508
Conversation
This is a prototype implementation for the API proposed in issue #28.
In the snapshot hook module.
To avoid the need to implement a class and also avoid forcing of a specific function name.
This makes it easier to integrate those hook systems with git tracking.
Instead of storing metadata in the commit message.
No longer needed since the drop of support for Python 2.7.
Also just ignore the hidden signac snapshots directory instead of all hidden files and directories.
No, the properties on the project that users are expected to use should be public and part of the API IMO.
What is your suggestion? Should we try to fix this as part of this PR or not? |
I agree. I recommend renaming
I'm fine with fixing the docs in this PR or in a subsequent PR -- just wanted to note the issue for right now. I can revisit this again later in the week but would welcome anyone who has time to work on it sooner. |
@bdice I couldn't get the documentation quite right but I made it passable I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
I have resolved conflicts with other recently merged PRs (template reference data was updated). @csadorf If you would like to offer a final review, this is ready. Otherwise I think we can merge this PR. |
Description
Extension of #189 that includes only core features. This will make the PR easier to review and finalize. See #189 for details.
To-do:
hook(operation_name, error, *jobs)
(error
only foron_fail
).Motivation and Context
Implement core features of execution hooks.
Types of Changes
1The change breaks (or has the potential to break) existing functionality.
Checklist:
If necessary: