There really needs to be an easier way to do local testing with queues
and tasks doing what they do when an app is deployed.

Any other suggestions on how to easily test with background tasks
using the SDK so they run automatically with hopefully more than 1
running concurrently?

On Jan 13, 1:13 pm, "Wesley Chun (Google)" <wesc+...@google.com>
wrote:
> greetings!
>
> you are correct. the Task queues in the development server are
> controlled by a POST that you send from the Task Queues page of the
> admin console. this is (mostly) desired by developers because they
> have more control over when tasks get executed.
>
> in order to run them automatically, you'll need to do some wizardry to
> simulate those requests. in the Python world, you could probably do
> one of these two things:
>
> - a record-n-playback macro either via a tool like Selenium or
> Windmill
> - if you want a pure command-line script, check out the Mechanize
> package which simulates a browser
>
> let us know how you end up implementing it. does anyone else out there
> have a different way of auto-executing tasks with the dev server?
>
> cheers,
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>    http://corepython.com
>
> wesley.j.chun :: wesc+...@google.com
> developer relations :: google app engine
>
> On Jan 11, 9:36 pm, Philip <phili...@gmail.com> wrote:
>
>
>
> > I've read some articles on auto running tasks using the developer sdk
> > and python. The articles I've found don't provide a good workaround. I
> > am POSTing tasks using the Task class with parameters. I would like to
> > run concurrent background tasks on my dev machine. If I can only run
> > them single threaded, I guess that's OK for now.
>
> > What type of shell script or equivalent should I write that will
> > automatically run tasks by first discovering them in the queues and
> > then submitting them as POSTs to the appropriate queue URLs with the
> > original parameters?
>
> > Note: The GAE SDK is running on OS X.
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to