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

Solve database lock during long computations by breaking up the make callback into three parts #1171

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ethho
Copy link
Contributor

@ethho ethho commented Aug 21, 2024

Fixes #1170, implementing the proposed solution to long-running make calls that lock table metadata.

To Do

  • Use threading library to write concurrency pytest
  • Basic regression test that uses three-part make

@ethho ethho marked this pull request as draft August 21, 2024 21:55
@ethho ethho self-assigned this Aug 21, 2024
@dimitri-yatsenko dimitri-yatsenko changed the title Allow Computed tables to provide a three part make function Solve database lock during long computations by breaking up the make callback into three parts Aug 23, 2024
def make_fetch(self, key):
# make reference to a random tuple from L
lookup = list(L().fetch("KEY"))
inputs = key, lookup
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't have to return the key since its provided by populate

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.

Long make calls lock table metadata
2 participants