fix(work): fence repeated approval intents and audit state changes atomically
This commit is contained in:
@@ -101,3 +101,6 @@ class ApprovalAPI:
|
||||
await self.worker.call('close_unavailable')
|
||||
for approval_id in await self.worker.call('cards_to_send'):self._schedule('send',approval_id)
|
||||
for approval_id in await self.worker.call('cards_to_close'):self._schedule('close',approval_id)
|
||||
if self.auth.s.approval_retention_enabled:
|
||||
await self.worker.call('maintain_retention',self.auth.s.approval_payload_retention_days,
|
||||
self.auth.s.approval_audit_retention_days)
|
||||
|
||||
Reference in New Issue
Block a user