0

Hi i am using task queue for saving customer in customer entity. I am saving 10 customer into the customer entity using task queue. So Task in queue there are 10 customer. if due to some wrong inputs some 5 customer not saved in entity and 5 customer saved successfully in entity. so how can i inform these failed 5 customer information to client side.

Any help?

Thanks in advance

1 Answers1

0

There's no built-in way to communicate between tasks and client side. The straight forward solution would be to query (poll) the server side for successful execution of your tasks.

EDIT: if you don't need to let the client side know, and you just want to debug the problem and see what went wrong, you can simply view the logs. In the Developers Console go to Monitoring >> Log and search for the URL of your task. Updated answer accordingly

MeLight
  • 5,454
  • 4
  • 43
  • 67
  • thanks for your valuable comment but just i want to know the some queue failed that information i need it how can i know failed queue information – Vijay Chougule Sep 30 '15 at 14:42
  • You need to store somewhere the fact that something failed (or succeeded), say in Datastore, and then on the client side keep querying the server side until you get the failed/success result. – Mihail Russu Sep 30 '15 at 16:36
  • @VijayChougule if you don't need to let the client side know you can just view the logs. In the Developers Console go to **Monitoring** >> **Log** and search for the URL of your task. Updated answer accordingly – MeLight Oct 01 '15 at 16:59