Hi, we intensly use tasks in our projects. In our last project we have several problems with task's fork bomb [a task A enqueue a task B then task A fails, when it's retried enqueue again task B and so on]
Suppose to have the following java code:
public class Task1 extends HttpServlet{
@Override
public void doPost(HttpServletRequest request, HttpServletResponse response){
//Datastore reads and writes
Queue queue= QueueFactory.getDefaultQueue();
queue.add(withUrl("/anothertask"));
}
}
We wonder if it's possible that a task's fork bomb can happen in this exemple.
If yes, we would like to know why it can happen.
P.s: In our project we have a lot of code like this above. We have encountered the fork bomb when the task throw a deadlineExceededException or a Datastore Exception
Thanks and sorry for our english :D