mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 02:32:07 +01:00
Bound repeated external-object eligibility reconstruction
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
9dc58866e7
commit
4033d455ae
5 files changed
+118
-4
No files matched your search
@@ -1158,6 +1158,9 @@ export function externalObjectService(
|
||||
queue: DELIVERY_QUEUES.externalObjectRefresh,
|
||||
batchSize: 50,
|
||||
minimumPassIntervalMs: 0,
|
||||
// Eligibility changes affect every object in the company. Coalesce repeated
|
||||
// rebuilds while object/identity hints and saved deadlines remain immediate.
|
||||
reconstructionIntervalMs: scope => scope && !scope.objectId && !scope.identity ? 30_000 : 0,
|
||||
decodeScope: hint => hint === "*" ? undefined : JSON.parse(hint) as RefreshScope,
|
||||
matches: (entry, scope) => !scope || (entry.companyId === scope.companyId
|
||||
&& (!scope.objectId || entry.id === scope.objectId)
|
||||
|
||||
Reference in new issue
Block a user