Skip to content

Commit

Permalink
fix: unexpected error by increasing sqs message visibility time (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega authored Jun 24, 2024
1 parent 7529926 commit acc1ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer-server/src/adapters/sqs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function createSqsAdapter(endpoint: string): Promise<QueueComponent
const receiveCommand = new ReceiveMessageCommand({
QueueUrl: endpoint,
MaxNumberOfMessages: 1,
VisibilityTimeout: 3600 // 1 hour
VisibilityTimeout: 7200 // 2 hours: allow long-processing time
})
const { Messages = [] } = await client.send(receiveCommand)

Expand Down

0 comments on commit acc1ecf

Please sign in to comment.