|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
|
_status_path(self,
id)
Construct a URL path that can be used to poll a task's status A
status path is constructed as follows: /<collection>/<object
id>/<action>/<action id>/ A GET request sent to this
path will get a JSON encoded status object |
source code
|
|
|
_task_to_dict(self,
task)
Convert a task to a dictionary (non-destructive) while retaining the
pertinent information for a status check but in a more convenient
form for JSON serialization. |
source code
|
|
|
accepted(self,
status)
Return an accepted response with status information in the body. |
source code
|
|
|
|
|
|
|
start_task(self,
func,
args=[],
kwargs={},
timeout=None,
unique=False)
Execute the function and its arguments as an asynchronous task. |
source code
|
|
|
|
|
|
|
_output(self,
data)
JSON encode the response and set the appropriate headers |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
params(self)
JSON decode the objects in the requests body and return them |
source code
|
|
|
|