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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy