Skip to content

Commit 16735b3

Browse files
author
James William Dumay
authored
Update CloudTasksQueue.php
1 parent 5c5dbc5 commit 16735b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CloudTasksQueue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ protected function pushToCloudTasks($queue, $payload, $delay = 0)
153153
$httpRequest->setBody($payload);
154154

155155
$task = $this->createTask();
156-
$task->setName($this->taskName($queueName, $uuid, $displayName));
156+
$task->setName($this->taskName($queue, $uuid, $displayName));
157157
$task->setHttpRequest($httpRequest);
158158

159159
// The deadline for requests sent to the app. If the app does not respond by
@@ -185,6 +185,7 @@ private function taskName(string $queueName, string $uuid, string $displayName)
185185
$location = $config['location'];
186186
$queueId = $queueName;
187187
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
188+
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
188189
$displayName = str_replace("\\", "-", $displayName);
189190
$taskName = sprintf('projects/%s/locations/%s/queues/%s/tasks/%s-%s', $projectId, $location, $queueId, $uuid, $displayName);
190191
Log::info('Task name '. $taskName);

0 commit comments

Comments
 (0)