Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 339459e

Browse files
avoorheesgguuss
authored andcommitted
Update create_http_task.py (GoogleCloudPlatform#2187)
Updates `create_http_task.py` to have missing `in_seconds` variable
1 parent aaf87a9 commit 339459e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/create_http_task.py

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

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

5758
# Add the payload to the request.
5859
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)

0 commit comments

Comments
 (0)