Skip to content

Commit

Permalink
fix: receive message wait time cannot be larger than 20
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-geller committed Jul 5, 2024
1 parent 6ef3f3e commit 0847ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/kestra/plugin/aws/sqs/RealtimeTrigger.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public Flux<Message> publisher(final Consume task,
while (isActive.get()) {
ReceiveMessageRequest receiveRequest = ReceiveMessageRequest.builder()
.queueUrl(queueUrl)
// default read timeout is 30s, so we cannot use a bigger wait time, or we would need to increase the read timeout
.waitTimeSeconds(30)
// default read timeout is 20s, so we cannot use a bigger wait time, or we would need to increase the read timeout
.waitTimeSeconds(20)
.build();

sqsClient.receiveMessage(receiveRequest)
Expand Down

0 comments on commit 0847ab1

Please sign in to comment.