Skip to content

Commit

Permalink
Update Cloud Tasks library version (#2516)
Browse files Browse the repository at this point in the history
* Update to new library

* update library version
  • Loading branch information
averikitsch authored Nov 7, 2019
1 parent 77c160b commit 3369fd0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion appengine/flexible/tasks/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions tasks/create_http_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions tasks/create_http_task_with_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tasks/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
google-cloud-tasks==1.2.1
google-cloud-tasks==1.3.0
googleapis-common-protos==1.6.0

0 comments on commit 3369fd0

Please sign in to comment.