I am trying to use Tasks in my application, but when they try to run, I get 
a 302 error.

I am using the CodeIgniter framework.

Below is my code to add a task (I can see the task in the queue, it just 
fails for some reason)

I think the issue is to do with the URL defined in the PusTask. CodeIgniter 
uses routes to handle the controller methods and I think it is looking for 
a bog standard *.php file, which I don't have (and don't really want to 
use).

Has anyone got CI working with Tasks?

$task = new PushTask('/path/to/controller', ['id' => $id]);
$task_name = $task->add('my_queue');

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e7bc30b9-c80a-48a5-8d52-ad72c852b54f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to