Isolate infinite loop bug, add timeout to actions #583
Reference in New Issue
Block a user
Delete Branch "fix-infinite-sleep-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The following causes an infinite loop on cascade deletes:
sync_accountsync_accountinteracts withAccount, causes deadlockSolution
@@ -12,3 +12,4 @@has_many :transactions, dependent: :destroymonetize :balanceThis is correct behavior and matches the behavior at the database level. The previous version was an oversight.
Here is the intentionally forced loop error, cancelled after 5 minutes due to GH Action timeout:
See:
https://github.com/maybe-finance/maybe/actions/runs/8482867745/job/23242934822?pr=583
This PR is blocking several others, so merging it now.
That said, the strategy for triggering syncs will be an important concept for this app, so feel free to comment here on this PR after it's closed, open a discussion, or separate issues if there's a better way to do this.