Skip to content

Conversation

@parkan
Copy link
Collaborator

@parkan parkan commented Nov 11, 2025

ok this ended up expanding into a pretty comprehensive set of fixes for various database related woes, supporting 3 backends with complex relations on a large DB is a bit of a pain but this should resolve both stale workers and inability to delete preparations (which seems to have been a combination of cascade deadlocks in some cases and just incredibly long running files tablescans in others)

@parkan parkan changed the title hotfix: add indexes for jobs/preps FKs fix remaining deadlocks + prep deletion Nov 11, 2025
@parkan
Copy link
Collaborator Author

parkan commented Nov 11, 2025

a good chunk of the logic can be deleted if we decide to drop MySQL support, however I believe we do have some users on that backend

@parkan
Copy link
Collaborator Author

parkan commented Nov 11, 2025

hmmm ok we have a non-deterministic deadlock in healthcheck test under mysql, investigating (this is good though, the test is meant to stress the logic)

@parkan
Copy link
Collaborator Author

parkan commented Nov 11, 2025

ok this now remains stable after 100 rounds of torture, I feel pretty good about it

@parkan parkan merged commit 22558bb into main Nov 13, 2025
3 checks passed
@parkan parkan deleted the fix/deadlock-hotfix branch November 13, 2025 09:49
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