Add more configurations for Storage Queue Action Type
We use the scheduler service to start a long running job once a day. We want to set the expiration time to one day so that the service is not running in parallel or twice.
I’m not exactly clear what you are looking for. Do you mean that you would like the message in the queue to expire (be deleted) if it has not been processed (read) by a certain time?
Thanks for your suggestion,
Ganesh V commented
Currently the queue message from scheduler contains XML. Which I deserialize to get the message. I need those messages to have properties as key value pairs which we used to have with APIs. E.g., message.Properties["Name"]="GOOGLE". So that I can avoid the deserialization of message body.
Václav Dajbych commented
I need the same thing. I don't know what is default expiration time of message enqueued by azure scheduler, but the message in not processed probably because it expires before is dequeued.
Think meaning of above question is in context of long running task which is not good process in parallel. When the message is enqueued every day and one message id delayed 23 hours 50 minutes, ten minutes later is enqueued the next one. This may cause two tasks are processed in parallel. If the message expires after 18 hours, it would be finished before next run starts.