Skip to content

Commit

Permalink
Set reminder receipt TTL same as the queue message's (#4298)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Jan 6, 2025
1 parent eb4a77d commit 76baee7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task SetReminderAsync(T payload, TimeSpan visibilityTimeout, bool i
{
var client = _workItemProducerFactory.CreateProducer<T>(isCodeFlow);
var sendReceipt = await client.ProduceWorkItemAsync(payload, visibilityTimeout);
await _receiptCache.SetAsync(new ReminderArguments(sendReceipt.PopReceipt, sendReceipt.MessageId), visibilityTimeout + TimeSpan.FromHours(4));
await _receiptCache.SetAsync(new ReminderArguments(sendReceipt.PopReceipt, sendReceipt.MessageId), visibilityTimeout);
}
}

Expand Down

0 comments on commit 76baee7

Please sign in to comment.