refactor: better resume two-way sync in case of MCP/API updates

This commit is contained in:
Amruth Pillai
2026-05-26 12:05:38 +02:00
parent 19b412d84d
commit dd1e37e579
11 changed files with 548 additions and 93 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ describe("rateLimitConfig", () => {
});
it("provides reasonable mutation throughput for resume edits", () => {
expect(rateLimitConfig.orpc.resumeMutations).toEqual({ maxRequests: 60, window: 60 * 1000 });
expect(rateLimitConfig.orpc.resumeMutations).toEqual({ maxRequests: 300, window: 60 * 1000 });
});
it("limits storage uploads more strictly than deletes", () => {
+1 -1
View File
@@ -45,6 +45,6 @@ export const rateLimitConfig = {
jobsTestConnection: { maxRequests: 10, window: 60 * 1000 },
storageUpload: { maxRequests: 20, window: 60 * 1000 },
storageDelete: { maxRequests: 30, window: 60 * 1000 },
resumeMutations: { maxRequests: 60, window: 60 * 1000 },
resumeMutations: { maxRequests: 300, window: 60 * 1000 },
},
} as const;