Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc73929

Browse filesBrowse files
averikitschandrewsg
authored andcommitted
update region tags (GoogleCloudPlatform#1532)
1 parent 362a99c commit bc73929
Copy full SHA for bc73929

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎tasks/pull_queue_snippets.py

Copy file name to clipboardExpand all lines: tasks/pull_queue_snippets.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
def create_task(project, queue, location):
27-
# [START tasks_create_task]
27+
# [START cloud_tasks_create_task]
2828
"""Create a task for a given queue with an arbitrary payload."""
2929

3030
from google.cloud import tasks_v2beta2
@@ -50,11 +50,11 @@ def create_task(project, queue, location):
5050

5151
print('Created task: {}'.format(response.name))
5252
return response
53-
# [END tasks_create_task]
53+
# [END cloud_tasks_create_task]
5454

5555

5656
def lease_task(project, queue, location):
57-
# [START tasks_lease_and_acknowledge_task]
57+
# [START cloud_tasks_lease_and_acknowledge_task]
5858
"""Lease a single task from a given queue for 10 minutes."""
5959

6060
from google.cloud import tasks_v2beta2
@@ -89,7 +89,7 @@ def acknowledge_task(task):
8989
client.acknowledge_task(task.name, task.schedule_time)
9090

9191
print('Acknowledged task {}'.format(task.name))
92-
# [END tasks_lease_and_acknowledge_task]
92+
# [END cloud_tasks_lease_and_acknowledge_task]
9393

9494

9595
if __name__ == '__main__':

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.