8000 fix: update sample for task name (#120) · googleapis/python-tasks@b1be2de · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit b1be2de

Browse files
authored
fix: update sample for task name (#120)
1 parent c342894 commit b1be2de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/snippets/create_http_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def create_http_task(
7676

7777
if task_name is not None:
7878
# Add the name to tasks.
79-
task["name"] = task_name
79+
task["name"] = client.task_path(project, location, queue, task_name)
8080

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

0 commit comments

Comments
 (0)
0