Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion samples/snippets/create_http_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def create_http_task(
if deadline is not None:
# Add dispatch deadline for requests sent to the worker.
duration = duration_pb2.Duration()
task["dispatch_deadline"] = duration.FromSeconds(deadline)
duration.FromSeconds(deadline)
task["dispatch_deadline"] = duration

# Use the client to build and send the task.
response = client.create_task(request={"parent": parent, "task": task})
Expand Down