[GH-ISSUE #507] [FEATURE REQUEST] Add ChangeMessageVisibility API #2257

Open
opened 2026-03-15 19:52:33 +03:00 by kerem · 1 comment
Owner

Originally created by @syangragh on GitHub (Jul 1, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/507

Originally assigned to: @hibiken on GitHub.

Need a message-base executing exactly once and at least once mechanism

When writing task queue handling with AWS SQS, the worker can guarantee a message has been successfully handled once and only once.

Provide a ChangeMessageVisibility API

With this API, we can program the worker to the following logic

  • ChangeMessageVisibility
  • Do actual work
  • DeleteMessage

Not sure if this feature is already in the lib (I did not see it, but probably because I am new)

If it's not here, I'd be happy to help on to contribute.

Originally created by @syangragh on GitHub (Jul 1, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/507 Originally assigned to: @hibiken on GitHub. **Need a message-base executing exactly once and at least once mechanism** When writing task queue handling with AWS SQS, the worker can guarantee a message has been successfully handled once and only once. ![](https://miro.medium.com/max/1400/1*uJGkrXbJcRc4kYCvI71cVA.png) **Provide a ChangeMessageVisibility API** With this API, we can program the worker to the following logic - ChangeMessageVisibility - Do actual work - DeleteMessage **Not sure if this feature is already in the lib (I did not see it, but probably because I am new)** If it's not here, I'd be happy to help on to contribute.
Author
Owner

@hibiken commented on GitHub (Jul 2, 2022):

@syangragh thank you for creating an issue.

Could you give a detailed example of the suggested API? What would it look like? (code snippet would be helpful).

<!-- gh-comment-id:1172795537 --> @hibiken commented on GitHub (Jul 2, 2022): @syangragh thank you for creating an issue. Could you give a detailed example of the suggested API? What would it look like? (code snippet would be helpful).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2257
No description provided.