Skip to content

Conversation

@crynobone
Copy link
Member

@crynobone crynobone commented Aug 26, 2025

crynobone and others added 10 commits August 26, 2025 19:44
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@crynobone crynobone marked this pull request as ready for review August 28, 2025 07:35

$messageGroupId = transform($job->messageGroup ?? null, fn ($messageGroup) => strval($messageGroup));

$messageDeduplicationId = $job instanceof ShouldBeUnique && method_exists($job, 'uniqueId')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit worried about this one... people may not expect ShouldBeUnique to have the effect this would cause.

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html

AWS will not accept another job with the same de-dup ID for 5 minutes, even if there are no other jobs on the queue with that ID.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swap to check for deduplicateId() method instead.

@taylorotwell taylorotwell marked this pull request as draft August 28, 2025 14:42
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@crynobone crynobone marked this pull request as ready for review August 29, 2025 02:10
@taylorotwell taylorotwell merged commit 8a3af7b into 12.x Aug 29, 2025
25 of 64 checks passed
@crynobone crynobone deleted the 12/sqs-fair branch September 2, 2025 22:58
AhmedAlaa4611 referenced this pull request in laravel/docs Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants