PDA

View Full Version : TN Reprocessing failed delivery tasks in batch


ylo
09-01-2006, 11:29
Currently, we have a schedule service to restart all the failed delivery tasks in TN. Basically, I want to only have 1 service thread for restarting all the failed tasks. Because if I loop through the failed tasks and call wm.tn.task:restartTask, it will execute all these failed tasks simultaneously. I only want to execute 1 at a time.

Is this possible and have anyone done this before..??

Thanks,
YLO

rlitjens
09-02-2006, 07:22
Just an idea:

-get task id's that failed
-loop over task id's
---call wm.tn.task:restartTask
---sleep a few seconds
-endloop