Public Queue Delivery Task status
The status of a task is DELIVERING, when the task is pulled by getQueuedTask service.
I dont see the task status again changing to QUEUED or any other value when i am not updating the task with status success. Reliable Delivery settings are not having any effect either…
Am interested in knowing when the status DELIVERING will become QUEUED again.
You must always update the task after using getQueuedTask. Set the status to success and the task will show DONE. Set the status to fail and the task will show FAILED if the task has reached is retry limit, or will be QUEUED if not. Place your processing within a try/catch construct to ensure that you always call updateQueuedTask.
Thanks Rob,
In my Tasks details for a QUEUED/DELIVERING document, I see the retry limit and number of retries as zero. But in Tools/Server Setup/Tasks, I find Maximum retries set as 5.
My understanding is, public queue by default is ‘reliable delivery’ and it picks the retry limit and no of retries from Tools/Server Setup/Tasks. This queue is not configure to ‘run once’.
On a differnt note, Apparently the status got changed to QUEUED from DELIVERING when Maximum retries is zero and when updateTaskStatus is not invoked. Am doing a post mortem which caused duplication of our transmissions in VAN box
Just wondering what you’ve found out from your post mortem on the duplication at the VAN box ? We had a similar scenario where TN registers on occurrence of the document and yet it showed up multiple times at the VAN. This only occurs when the VAN is down.
Our queue and retries setup is the same as your above post.
I have a similar problem. I realize this is an old topic, but will see if anyone now has an answer. In tn properties i have the following setting tn.task.maxRetries = 10. For service execution tasks, the retry cound shows up correctly. 10 tries then it fails. However for a scheduled delivery queue, it show retries = 0. The result is that the task tries to send once. The send fails, i use updateQueuedTask to set the status to fail, but since it doesn’t think there are any retries left, it stops. Is there another setting for max retries on queued tasks?
Hi,
Is your scheduled delivery queue set up as “Run Once”. In that case, TN will execute the delivery service 1 time even if it fails. You will need to change it to run at simple or complex intervals.
I am using a public queue defined as a simple interval running every 60 seconds.
I have a processing rule whose action is set to Delvier Document By Scheduled Delivery to my public queue.
The processing rule and queue seem to be working as expected. If I manually set the retry limit in the datbase DELIVERYJOB table to 100 then it runs through and retries as expected. The problem is that when the jbos is initially scheduled the rety limit is set to 0.