You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is that you are only passing in the taskId from the header: "x-cloudtasks-taskname"
The CloudTaskApi needs the constructed task name like: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
It works by creating the taskName with: $taskName = request()->header('X-Cloudtasks-Taskname'); $queue = $job->getQueue() ?: $this->config['queue']; $name = $this->client->taskName($this->config['project'], $this->config['location'], $queue, $taskName);
I think that line got lost in the update from v2 to v3 of this package since the task name is constructed that way in v2.
Kind regards
The text was updated successfully, but these errors were encountered:
In v3.x in TaskHandler.php:111 you are calling:
$job->setRetryUntil(CloudTasksApi::getRetryUntilTimestamp($taskName));
Problem is that you are only passing in the taskId from the header: "x-cloudtasks-taskname"
The CloudTaskApi needs the constructed task name like:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID
It works by creating the taskName with:
$taskName = request()->header('X-Cloudtasks-Taskname'); $queue = $job->getQueue() ?: $this->config['queue']; $name = $this->client->taskName($this->config['project'], $this->config['location'], $queue, $taskName);
I think that line got lost in the update from v2 to v3 of this package since the task name is constructed that way in v2.
Kind regards
The text was updated successfully, but these errors were encountered: