Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 5604ee4

Browse files
gguusscrwilcox
authored andcommitted
Adds updates for samples profiler ... vision [(#2439)](GoogleCloudPlatform/python-docs-samples#2439)
1 parent 23532a8 commit 5604ee4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/snippets/create_http_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def create_http_task(project,
3939
# location = 'us-central1'
4040
# url = 'https://example.com/task_handler'
4141
# payload = 'hello'
42-
in_seconds = 10
4342

4443
# Construct the fully qualified queue name.
4544
parent = client.queue_path(project, location, queue)
@@ -57,6 +56,7 @@ def create_http_task(project,
5756

5857
# Add the payload to the request.
5958
task['http_request']['body'] = converted_payload
59+
6060
if in_seconds is not None:
6161
# Convert "seconds from now" into an rfc3339 datetime string.
6262
d = datetime.datetime.utcnow() + datetime.timedelta(seconds=in_seconds)

samples/snippets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
google-cloud-tasks==1.1.0
1+
google-cloud-tasks==1.2.1
22
googleapis-common-protos==1.6.0

0 commit comments

Comments
 (0)