Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf87a9 commit 339459eCopy full SHA for 339459e
tasks/create_http_task.py
@@ -39,6 +39,7 @@ def create_http_task(project,
39
# location = 'us-central1'
40
# url = 'https://example.com/task_handler'
41
# payload = 'hello'
42
+ in_seconds = 10
43
44
# Construct the fully qualified queue name.
45
parent = client.queue_path(project, location, queue)
@@ -56,7 +57,6 @@ def create_http_task(project,
56
57
58
# Add the payload to the request.
59
task['http_request']['body'] = converted_payload
-
60
if in_seconds is not None:
61
# Convert "seconds from now" into an rfc3339 datetime string.
62
d = datetime.datetime.utcnow() + datetime.timedelta(seconds=in_seconds)
0 commit comments