Skip to content

Commit

Permalink
fix: update sample for task name (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
averikitsch authored and dandhlee committed Nov 15, 2022
1 parent 1a1d860 commit d4dcd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud-tasks/snippets/create_http_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit d4dcd83

Please sign in to comment.