We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b763fe6 commit f122cbcCopy full SHA for f122cbc
appengine/standard/taskqueue/pull-counter/main.py
@@ -40,12 +40,14 @@ def get(self):
40
counter_template = JINJA_ENV.get_template('counter.html')
41
self.response.out.write(counter_template.render(template_values))
42
43
+ # [START adding_task]
44
def post(self):
45
key = self.request.get('key')
46
if key:
47
queue = taskqueue.Queue('pullq')
48
queue.add(taskqueue.Task(payload='', method='PULL', tag=key))
49
self.redirect('/')
50
+ # [END adding_task]
51
52
53
@ndb.transactional
0 commit comments