python - How to define callbacks for Task API? -


Reading, it seems that using webhook as a callback is possible executed successfully Has happened.

I can not find any such example how it is done.

  google.appengine.api Import Tasksuke Tasks.ed from (url = '/ worker', params = {'key': key})  

This way the work is pushed into the queue, but how does it know that the work is finished and its callback URL will be called? How do I work in callback url?

You are confused with docs

App Engine is your app To specify a programmatic asynchronous callback as an HTTP request, sometimes a Web hook is called to enable the HTTP hook model to enable push processing by sending HTTP request to enable the Hook Model capable parallel processing.

There is no callback at the end or end of a running job, call the queue url (your handler), and in your example / worker this work Triggers to do what is defined in your code that calls to the caller / caller

There is nothing magical here, the entire process was called for the nominated URL only in your appengin app is. Only additional special bits are tasks that can be played for 10mins, and if the web request does not end with 200 position, then it can be retried.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -