Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commitb685da5

Browse files
authored
docs(sample): update protobuf in create_http_task.py (#283)
1 parent94cafc3 commitb685da5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎samples/snippets/create_http_task.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def create_http_task(
9090
ifdeadlineisnotNone:
9191
# Add dispatch deadline for requests sent to the worker.
9292
duration=duration_pb2.Duration()
93-
task["dispatch_deadline"]=duration.FromSeconds(deadline)
93+
duration.FromSeconds(deadline)
94+
task["dispatch_deadline"]=duration
9495

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp