DemocracyDevelopers / colorado-rla

Colorado Risk-Limiting Audit (RLA) software – developed to support risk-limiting post-election audits of election outcomes.
Other
0 stars 0 forks source link

Persist winners for IRV contests #136

Closed vteague closed 4 months ago

vteague commented 5 months ago

Persist IRV winners, which are currently returned by raire and may often be different from those generated by the contest counter.

Most likely, the best way to do this is with a new table. That table should include

vteague commented 5 months ago

Consider concurrency issues, particularly the possibility that the GenerateAssertions endpoint might be required to run in parallel. Understand how to ensure that multiple concurrent runs do not interfere, either directly or because of database interactions. The ACVRUpload endpoint may be a good thing to emulate.

vteague commented 4 months ago

Answer: the AbstractEndpoint has a before() method which begins the transaction when the endpoint is first hit. The use of Persistence.flush() seems to be common, though in various places.

vteague commented 4 months ago

Decided to do this in the raire-service instead.