Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appengine/flexible/tasks/create_app_engine_queue_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_task(project, queue, location, payload=None, in_seconds=None):
# Construct the request body.
task = {
'app_engine_http_request': { # Specify the type of request.
'http_method': 'POST',
'http_method': tasks_v2.HttpMethod.POST,
'relative_uri': '/example_task_handler'
}
}
Expand Down
8 changes: 4 additions & 4 deletions appengine/flexible/tasks/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def create_task(project, location, queue):

task = {
'app_engine_http_request': {
'http_method': 'POST',
'http_method': tasks.HttpMethod.POST,
'relative_uri': '/update_counter',
'app_engine_routing': {
'service': 'worker'
Expand Down Expand Up @@ -120,7 +120,7 @@ def create_tasks_with_data(project, location, queue):

task1 = {
'app_engine_http_request': {
'http_method': 'POST',
'http_method': tasks.HttpMethod.POST,
'relative_uri': '/update_counter?key=blue',
'app_engine_routing': {
'service': 'worker'
Expand All @@ -130,7 +130,7 @@ def create_tasks_with_data(project, location, queue):

task2 = {
'app_engine_http_request': {
'http_method': 'POST',
'http_method': tasks.HttpMethod.POST,
'relative_uri': '/update_counter',
'app_engine_routing': {
'service': 'worker'
Expand Down Expand Up @@ -165,7 +165,7 @@ def create_task_with_name(project, location, queue, task_name):
task = {
'name': client.task_path(project, location, queue, task_name),
'app_engine_http_request': {
'http_method': 'GET',
'http_method': tasks.HttpMethod.GET,
'relative_uri': '/url/path'
}
}
Expand Down