Skip to content

Commit eeb11b4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud-tasks/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)