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

Replace global execution options with node context parameter #2444

Merged
merged 3 commits into from Jan 12, 2024

Conversation

RunDevelopment
Copy link
Member

This removes the global mutable execution options and replaces them with a node context parameter: context: NodeContext.

The new parameter is opt in and can be enabled in @register with the node_context property. This not only minimizes the diff (I didn't want to change all nodes), it might also enable optimizations in the future.

Right now, the NodeContext class has 2 aspects to it: settings and progress. Settings and other execution options are now accessed through the node context parameter. While only the settings aspect is currently used, I also laid the groundwork for per-node progress, which will be my next goal.

@joeyballentine
Copy link
Member

Looks great 👍

@joeyballentine joeyballentine merged commit e66bfa1 into chaiNNer-org:main Jan 12, 2024
14 checks passed
@RunDevelopment RunDevelopment deleted the node-context branch January 12, 2024 13:48
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.

None yet

2 participants