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 <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
@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 <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
@crynobone crynobone marked this pull request as ready for review August 29, 2025 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants