From c673824084dfcafe28030e6b2f73f20fe5a11cbc Mon Sep 17 00:00:00 2001 From: averikitsch Date: Mon, 28 Oct 2019 13:32:47 -0700 Subject: [PATCH 1/2] Update to new library --- tasks/create_http_task.py | 4 ++-- tasks/create_http_task_with_token.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/create_http_task.py b/tasks/create_http_task.py index eb1a446fc9d..d86fc5b6937 100644 --- a/tasks/create_http_task.py +++ b/tasks/create_http_task.py @@ -27,11 +27,11 @@ def create_http_task(project, # [START cloud_tasks_create_http_task] """Create a task for a given queue with an arbitrary payload.""" - from google.cloud import tasks_v2beta3 + from google.cloud import tasks_v2 from google.protobuf import timestamp_pb2 # Create a client. - client = tasks_v2beta3.CloudTasksClient() + client = tasks_v2.CloudTasksClient() # TODO(developer): Uncomment these lines and replace with your values. # project = 'my-project-id' diff --git a/tasks/create_http_task_with_token.py b/tasks/create_http_task_with_token.py index 665d0714384..0c976913cee 100644 --- a/tasks/create_http_task_with_token.py +++ b/tasks/create_http_task_with_token.py @@ -27,11 +27,11 @@ def create_http_task(project, # [START cloud_tasks_create_http_task_with_token] """Create a task for a given queue with an arbitrary payload.""" - from google.cloud import tasks_v2beta3 + from google.cloud import tasks_v2 from google.protobuf import timestamp_pb2 # Create a client. - client = tasks_v2beta3.CloudTasksClient() + client = tasks_v2.CloudTasksClient() # TODO(developer): Uncomment these lines and replace with your values. # project = 'my-project-id' From 417115804bef8cc8af38564935a76484b515054d Mon Sep 17 00:00:00 2001 From: averikitsch Date: Wed, 6 Nov 2019 15:06:33 -0800 Subject: [PATCH 2/2] update library version --- appengine/flexible/tasks/requirements.txt | 2 +- tasks/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appengine/flexible/tasks/requirements.txt b/appengine/flexible/tasks/requirements.txt index 21496fb45b2..13167074586 100644 --- a/appengine/flexible/tasks/requirements.txt +++ b/appengine/flexible/tasks/requirements.txt @@ -1,4 +1,4 @@ Flask==1.1.1 gunicorn==19.9.0 -google-cloud-tasks==1.2.1 +google-cloud-tasks==1.3.0 googleapis-common-protos==1.6.0 diff --git a/tasks/requirements.txt b/tasks/requirements.txt index 21fc2a7ed78..a945842dd65 100644 --- a/tasks/requirements.txt +++ b/tasks/requirements.txt @@ -1,2 +1,2 @@ -google-cloud-tasks==1.2.1 +google-cloud-tasks==1.3.0 googleapis-common-protos==1.6.0