From b1be2de174fc37d0eb90bbf877851c11ddb14907 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Mon, 21 Jun 2021 14:52:56 -0700 Subject: [PATCH] fix: update sample for task name (#120) --- samples/snippets/create_http_task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/create_http_task.py b/samples/snippets/create_http_task.py index 056dde0c..e6d7435e 100644 --- a/samples/snippets/create_http_task.py +++ b/samples/snippets/create_http_task.py @@ -76,7 +76,7 @@ def create_http_task( if task_name is not None: # Add the name to tasks. - task["name"] = task_name + task["name"] = client.task_path(project, location, queue, task_name) # Use the client to build and send the task. response = client.create_task(request={"parent": parent, "task": task})