Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/sim/lib/core/rate-limiter/provider-admission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export class ProviderAdmissionTimeoutError extends Error {
/**
* Shared per-credential admission for indexing workers and interactive callers.
* These are deployment operating budgets, not claims about provider quotas.
* Redis and PostgreSQL use the same durable token buckets; storage errors fail
* before the provider request. Capacity is spent only when every dimension and
* The token buckets live in Redis; storage errors fail before the provider
* request. Capacity is spent only when every dimension and
* the shared provider cooldown permit the request in one atomic operation.
*/
export async function waitForProviderAdmission(input: ProviderAdmissionInput): Promise<void> {
Expand Down
6 changes: 0 additions & 6 deletions apps/sim/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,12 +684,6 @@ const nextConfig: NextConfig = {
source: '/favicon.ico',
destination: '/icon.svg',
},
/**
* Serves Stop from browser tabs still on v0.9.64 or earlier, which call the old abort
* path. Remove in any release after the first one that ships the move (the release
* after v0.9.64).
*/
{ source: '/api/copilot/chat/abort', destination: '/api/mothership/chat/abort' },
],
/**
* Fallback rewrites run only after every page and dynamic route has failed to match, so
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Each drop autocommits under a short lock timeout so a busy table fails fast for migrate.ts to retry
-- rather than queue traffic behind its ACCESS EXCLUSIVE lock. rate_limit_bucket has no FKs.
COMMIT;--> statement-breakpoint
SET lock_timeout = '100ms';--> statement-breakpoint
-- migration-safe: contract of #10269 (shipped in v0.9.65): whitelabeling was removed and no release from v0.9.65 on declares, reads, or writes whitelabel_settings.
ALTER TABLE "organization" DROP COLUMN IF EXISTS "whitelabel_settings";--> statement-breakpoint
-- migration-safe: contract of #10272 (shipped in v0.9.65): Redis is required and the Postgres token bucket and provider-capacity store that used rate_limit_bucket were removed.
DROP TABLE IF EXISTS "rate_limit_bucket";--> statement-breakpoint
SET lock_timeout = '5s';
Loading
Loading