mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-21 15:01:33 +00:00
Workaround for RivetKit bug where c.queue.iter() never yields messages
for actors created via getOrCreate from another actor's context. The
queue accepts messages (visible in inspector) but the iterator hangs.
Sleep/wake fixes it, but actors with active connections never sleep.
Converted organization, github-data, task, and user actors from
run: workflow(...) to plain run: async (c) => { for await ... }.
Also fixes:
- Missing auth tables in org migration (auth_verification etc)
- default_model NOT NULL constraint on org profile upsert
- Nested workflow step in github-data (HistoryDivergedError)
- Removed --force from frontend Dockerfile pnpm install
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
1.9 KiB
TypeScript
39 lines
1.9 KiB
TypeScript
export const ORGANIZATION_QUEUE_NAMES = [
|
|
"organization.command.createTask",
|
|
"organization.command.materializeTask",
|
|
"organization.command.registerTaskBranch",
|
|
"organization.command.applyTaskSummaryUpdate",
|
|
"organization.command.removeTaskSummary",
|
|
"organization.command.refreshTaskSummaryForBranch",
|
|
"organization.command.snapshot.broadcast",
|
|
"organization.command.syncGithubSession",
|
|
"organization.command.better_auth.session_index.upsert",
|
|
"organization.command.better_auth.session_index.delete",
|
|
"organization.command.better_auth.email_index.upsert",
|
|
"organization.command.better_auth.email_index.delete",
|
|
"organization.command.better_auth.account_index.upsert",
|
|
"organization.command.better_auth.account_index.delete",
|
|
"organization.command.better_auth.verification.create",
|
|
"organization.command.better_auth.verification.update",
|
|
"organization.command.better_auth.verification.update_many",
|
|
"organization.command.better_auth.verification.delete",
|
|
"organization.command.better_auth.verification.delete_many",
|
|
"organization.command.github.sync_progress.apply",
|
|
"organization.command.github.webhook_receipt.record",
|
|
"organization.command.github.organization_shell.sync_from_github",
|
|
"organization.command.shell.profile.update",
|
|
"organization.command.shell.sync_started.mark",
|
|
"organization.command.billing.stripe_customer.apply",
|
|
"organization.command.billing.stripe_subscription.apply",
|
|
"organization.command.billing.free_plan.apply",
|
|
"organization.command.billing.payment_method.set",
|
|
"organization.command.billing.status.set",
|
|
"organization.command.billing.invoice.upsert",
|
|
"organization.command.billing.seat_usage.record",
|
|
] as const;
|
|
|
|
export type OrganizationQueueName = (typeof ORGANIZATION_QUEUE_NAMES)[number];
|
|
|
|
export function organizationWorkflowQueueName(name: OrganizationQueueName): OrganizationQueueName {
|
|
return name;
|
|
}
|