Queues and worker role


  • Is it  possible for the worker roles , to reconfigure the Visibility Timeout  for a message that it is currently processing?(ie.preventing it from reappearing in the queue)
    Sunday, March 20, 2011 6:40 AM


  • The definitive way to find out the capabilities of the Azure Queue Service is to look directly at the Queue Service REST API, since this is the actual API used to interact with the service.

    The Get Messages operation does not provide a way to modify the visibility timout of an already-retrieved message. Consequently, it is not possible to do this. You can, however, set the visibility timeout to up to 2 hours when you retrieve the message. You should set the visibility timeout to a value large enough that you can complete all processing predicated on the message but not so high that you could have problems if a message was retrieved but not processed for that time (as would happen if the instance crashed before completing the processing of the message.)

    • Marked as answer by Ram55 Sunday, March 20, 2011 1:56 PM
    Sunday, March 20, 2011 6:57 AM