I am trying to utilise Tasks on GAE for some async processes.
I can get the Task into the queue, but I keep getting error 302 "App Error" in the logs and they are just retrying constantly.
I am doing this in CodeIgniter, so I'm wondering if the URL parameter is wrong?
Code:
$task = new PushTask('/path/to/endpoint', ['id' => $id]);
$task_name = $task->add();
The path to the end point is relative to the domain, but I think that may be the issue. Using site_url() or base_url() does not work!
My endpoint controller is set to pick up the POST data using:
$id = $this->input->post('id');
app.yaml:
application: <project-name>
version: 1
runtime: php
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: index.php