Skip to content

Commit

Permalink
fix: queue visibility timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed May 1, 2024
1 parent c33993c commit 82f3644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consumer-server/src/adapters/sqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export async function createSqsAdapter(endpoint: string): Promise<QueueComponent
async function receiveSingleMessage(): Promise<Message[]> {
const receiveCommand = new ReceiveMessageCommand({
QueueUrl: endpoint,
MaxNumberOfMessages: 1
MaxNumberOfMessages: 1,
VisibilityTimeout: 3600 // 1 hour
})
const { Messages = [] } = await client.send(receiveCommand)

Expand Down

0 comments on commit 82f3644

Please sign in to comment.