Thanks fir the clear tutorial. I can get mine working but if I don't use Ajax for calling the tasks, the process just loops infinitely.

Do you have an example of getting this to work from a method that gets called from another WP action?

Thanks