Bruno Prado
Bruno Prado3mo ago

Convex Deployment Frozen after Aggregations clearing

After running this:
export const clearAllOrderAggregations = migrations.define({
table: 'orders',
migrateOne: async (ctx, order) => {
await ordersAggregate.clear(ctx, { namespace: order.tenantId })
await ordersByDayAggregate.clear(ctx, { namespace: order.tenantId })
await ordersByCustomerAggregate.clear(ctx, { namespace: order.customerId })
}
})
export const clearAllOrderAggregations = migrations.define({
table: 'orders',
migrateOne: async (ctx, order) => {
await ordersAggregate.clear(ctx, { namespace: order.tenantId })
await ordersByDayAggregate.clear(ctx, { namespace: order.tenantId })
await ordersByCustomerAggregate.clear(ctx, { namespace: order.customerId })
}
})
Production is working, but Deployment is frozen.
4 Replies
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Bruno Prado
Bruno PradoOP3mo ago
Tried to restore the database using production backup and it is now frozen trying to restore the backup.
Bruno Prado
Bruno PradoOP3mo ago
No description
erquhart
erquhart3mo ago
Any chance you're a pro subscriber If so you can open a ticket in the dashboard

Did you find this page helpful?