I am using Cloud Functions to put tasks into Cloud Tasks Queue and invoke a service (worker) function. Both the task generator and task Handler functions are deployed to Cloud Functions. I am using App Engine application where worker function is executed. This is my task generator:
const task = { appEngineHttpRequest: {
httpMethod: 'POST',
relativeUri : '/taskHandler'},
const [ response ] = await tasksClient.createTask({ parent: queuePath, task })
When I run trigger the task generator function via HTTP trigger in Postman, the task is added to the queue but it stays there forever. The queue looks like this:
The logs of the handler task show it was never triggered. My task generator cannot reach task Handler. I am guessing the problem is with the relativeUri parameter. I don't know if I have set it correctly.
The logs of task in queue looks like this: