Celery v0.9.5 (unstable) documentation

This Page

Remote HTTP Tasks - celery.task.rest

exception celery.task.rest.InvalidResponseError
The remote server gave an invalid response.
exception celery.task.rest.RemoteExecuteError
The remote task gave a custom error.
class celery.task.rest.URL(url)

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": "Constanza"})
>>> str(url)
'http://www.google.com:6580/foo/bar?y=4&x=10&George=Constanza#foo'
exception celery.task.rest.UnknownStatusError
The remote server gave an unknown status.