This document describes an older version of Celery (2.5). For the latest stable version please go here.
Task webhooks implementation.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
Make task HTTP request and collect the task result.
Parameters: |
|
---|
Dispatch callback and return result.
Makes an HTTP request and returns the response.
Task dispatching to an URL.
Parameters: |
|
---|
If this is set, this is used as the default URL for requests. Default is to require the user of the task to supply the url as an argument, as this attribute is intended for subclasses.
If this is set, this is the default method used for requests. Default is to require the user of the task to supply the method as an argument, as this attribute is intended for subclasses.
The remote server gave an invalid response.
Object wrapping a Uniform Resource Locator.
Supports editing the query parameter list. You can convert the object back to a string, the query will be properly urlencoded.
Examples
>>> url = URL("http://www.google.com:6580/foo/bar?x=3&y=4#foo")
>>> url.query
{'x': '3', 'y': '4'}
>>> str(url)
'http://www.google.com:6580/foo/bar?y=4&x=3#foo'
>>> url.query["x"] = 10
>>> url.query.update({"George": "Costanza"})
>>> str(url)
'http://www.google.com:6580/foo/bar?y=4&x=10&George=Costanza#foo'
The remote task gave a custom error.
HTTP Callback URL
Supports requesting an URL asynchronously.
Parameters: |
|
---|
alias of HttpDispatchTask
The remote server gave an unknown status.
Extract the response text from a raw JSON response.
Encode to utf-8, only if the value is Unicode.
With a dict’s items() tuple return a new dict with any utf-8 keys/values encoded.