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 9a993ef commit 4a3afe8Copy full SHA for 4a3afe8
cloud-tasks/snippets/create_http_task.py
@@ -90,7 +90,8 @@ def create_http_task(
90
if deadline is not None:
91
# Add dispatch deadline for requests sent to the worker.
92
duration = duration_pb2.Duration()
93
- task["dispatch_deadline"] = duration.FromSeconds(deadline)
+ duration.FromSeconds(deadline)
94
+ task["dispatch_deadline"] = duration
95
96
# Use the client to build and send the task.
97
response = client.create_task(request={"parent": parent, "task": task})
0 commit comments