Skip to content

Commit

Permalink
Bump scrub workspace parallelism (#5126)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored May 18, 2024
1 parent 79406c7 commit 36d88cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions front/temporal/scrub_workspace/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ async function deleteAllConversations(auth: Authenticator) {
"Deleting all conversations for workspace."
);

// Temporary until we ease the load on the DB.
const conversationChunks = chunk(conversations, 1);
const conversationChunks = chunk(conversations, 4);
for (const conversationChunk of conversationChunks) {
await Promise.all(
conversationChunk.map(async (c) => {
Expand Down
2 changes: 1 addition & 1 deletion front/temporal/scrub_workspace/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function runScrubWorkspaceQueueWorker() {
const worker = await Worker.create({
workflowsPath: require.resolve("./workflows"),
activities,
maxConcurrentActivityTaskExecutions: 1,
maxConcurrentActivityTaskExecutions: 2,
taskQueue: QUEUE_NAME,
connection,
namespace,
Expand Down

0 comments on commit 36d88cd

Please sign in to comment.