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 339459e

Browse filesBrowse 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
Copy full SHA for 339459e

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎tasks/create_http_task.py

Copy file name to clipboardExpand all lines: tasks/create_http_task.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.