From 97238a5a93fc17ee57b9ae9f99b057dbe77210e0 Mon Sep 17 00:00:00 2001 From: averikitsch Date: Mon, 21 Jun 2021 09:09:35 -0700 Subject: [PATCH] fix: update sample for task name --- 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})