Skip to content

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

@dimitri-yatsenko
Copy link
Member

This will be superseded by #1204 - a simpler solution

@dimitri-yatsenko dimitri-yatsenko deleted the feat/three-part-make branch July 3, 2025 22:05
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

3 participants