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

Add actual condition to run orchestrate_diagnostics #48

Closed
wants to merge 1 commit into from

Conversation

Sbozzolo
Copy link
Member

This closes #37, but I am not sure if it is worth the additional complexity (even if it is not much more complex, it's mostly the fact that now there two callbacks have to be added).

This PR pulls out the condition to run the diagnostic callback from the diagnostic callback, so that callback.condition is reflective on whether the diagnostic callback will be run or not. However, the diagnostic callback might be running for compute, output, or sync, and I expect compute to be on almost all iterations, so that condition will not be particularly informative. To make it more useful, we could further split the callbacks to compute, output, cleanup, and sync to provide more granular information on what is schedule to happen.

@Sbozzolo
Copy link
Member Author

@charleskawczynski, what do you think?

@charleskawczynski
Copy link
Member

Sorry I missed this, I'm in a lot of notification debt. Yeah, this is probably not worth the additional complexity. Let's punt on it for now.

@Sbozzolo Sbozzolo closed this Oct 3, 2024
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.

Callbacks condition does not reflect if the diagnostic is computed/written to file.
2 participants