Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

server: Don't lock all awaited database Payments at once in update task #19

Open
ezdac opened this issue Oct 27, 2020 · 0 comments
Open

Comments

@ezdac
Copy link
Contributor

ezdac commented Oct 27, 2020

with_for_update will (probably?) lock all the corresponding entries (which are all that are relevant for the WSGI backend).
Check wether this is a viable solution to lock all entries at once on a task that is recurring relatively often (on every poll of the Raiden API).

https://github.com/raiden-network/paywall/blob/c84e5407f60e5316dd477ca4a9bbf89ad2749c00/server/src/raiden_paywall/tasks.py#L17-L24

@ezdac ezdac changed the title server: Don't lock all awaited database Payments at once in in update task server: Don't lock all awaited database Payments at once in update task Oct 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant