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

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

Commit b1be2de

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎samples/snippets/create_http_task.py

Copy file name to clipboardExpand all lines: samples/snippets/create_http_task.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.