machinery icon indicating copy to clipboard operation
machinery copied to clipboard

Is it possible to change message visibility for SQS automatically while processing a long task?

Open shun-tak opened this issue 3 years ago • 0 comments

Hello everyone,

I am using machinery with SQS.

One of my tasks takes a long time to finish the process. Most are finish in 30 secs so I use 30 secs for default VisibilityTimeout.

The one takes more than 10 mins so I would like to update the message visibility for SQS to avoid rerunning the task because if visibility timeout exceeds, machinery will get the same task and start another job.

I understood that when running the task, I can update message visibility time by calling the ChangeMessageVisibility API.

I would be happy if it is possible to change that automatically.

shun-tak avatar Mar 30 '21 02:03 shun-tak