Skip to content

Commit a5c8d96

Browse files
authored
fix: round delay up to next second
1 parent b4ad124 commit a5c8d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sqs/SqsProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function send(Destination $destination, Message $message): void
5656
];
5757

5858
if (null !== $this->deliveryDelay) {
59-
$arguments['DelaySeconds'] = (int) ($this->deliveryDelay / 1000);
59+
$arguments['DelaySeconds'] = (int) ceil($this->deliveryDelay / 1000);
6060
}
6161

6262
if ($message->getDelaySeconds()) {

0 commit comments

Comments
 (0)