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

Update DB access and queue handling #449

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

mattldawson
Copy link
Collaborator

Makes saves to the database atomic operations, updates the model runners to pause consumption of messages from the run queue while a simulation is running, and removes the thread pool for model runners.

Copy link
Collaborator

@K20shores K20shores left a comment

Choose a reason for hiding this comment

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

This looks good. However I wonder if we need the database stuff if we are going to figure out how to merge in #448. What do you think? Should we forgo postgres for now?

@mattldawson
Copy link
Collaborator Author

This looks good. However I wonder if we need the database stuff if we are going to figure out how to merge in #448. What do you think? Should we forgo postgres for now?

no, I think it makes sense to switch to postgres, and if that goes in first, we can modify this PR to remove the atomic DB operations. I just wanted to submit this so we didn't lose track of the changes needed to fix the queue problems.

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