mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-02 16:58:52 +01:00
refactor: remove obsolete external object batch refresh entrypoints
Exercise lease, selection, and recovery behavior through the registered scheduler owner. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
4771986772
commit
4e97daafa0
5 files changed
+43
-95
No files matched your search
@@ -100,14 +100,6 @@ const active: ExternalObjectResolveResult = { ok: true, snapshot: {
|
||||
});
|
||||
}
|
||||
|
||||
it("captures the old configured-empty aggregate SQL cost", async () => {
|
||||
const svc = service(); await fixture();
|
||||
const selects = vi.spyOn(db, "select");
|
||||
for (let i = 0; i < 3; i++) await svc.refreshDueObjectsForActiveCompanies();
|
||||
expect(selects).toHaveBeenCalledTimes(6);
|
||||
expect(provider).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("activates saved work when the ordinary feature and company settings enable it", async () => {
|
||||
clock(); const settings = instanceSettingsService(db);
|
||||
await settings.updateExperimental({ enableExternalObjects: true });
|
||||
|
||||
Reference in new issue
Block a user