blob: f823db0a8498d2b50eeeb2166a819e80b5db97f1 [file] [log] [blame]
Joe Gregorio239855e2011-05-04 14:22:30 -04001This acts as a sample as well as commandline tool for accessing Google TaskQueue
2APIs.
3
Joe Gregorio9d56b5a2012-03-30 09:21:26 -04004api: taskqueue
5keywords: cmdline
6
Joe Gregorio239855e2011-05-04 14:22:30 -04007Installation
8============
9
10To install, simply say
11
12 $ python setup.py install --record=files.txt
13
14to install the files and record what files are installed in files.txt.
15Make sure that you have already installed the google-python-client-libraries
16using the setup.py in the toplevel directory.
17
18You may need root priveleges for install.
19
20Running
21=======
22This sample provides following:
231. gtaskqueue: This works as a command-line tool to access Google TaskQueue
24API. You can perform various operations on taskqueues such as leastask,
25getask, listtasks, deletetask, getqueue.
26Example usage:
27 i. To lease a task
28 gtaskqueue leasetask --taskqueue_name=<your queue_name>
29 -lease_secs=30 --project_name=<your appengine app_name>
30 ii. To get stats on a queue
31 gtaskqueue getqueue --taskqueue_name=<your queue_name>
32 --project_name=<your appengine app_name> --get_stats
33
342. gtaskqueue_puller: This works as a worker to continuously pull tasks enqueued
35by your app,perform the task and the post the output back to your app.
36Example Usage:
37 gtaskqueue_puller --taskqueue_name=<your queue_name>
38 -lease_secs=30 --project_name=<your appengine app_name>
39 --executable_binary=”cat --output_url=<url location if you want to pos the data
40 back(optional)>
41
42Third Party Libraries
43=====================
44
45These libraries will be installed when you install the client library:
46
47http://code.google.com/p/httplib2
48http://code.google.com/p/uri-templates
49http://github.com/simplegeo/python-oauth2