As Tim pointed out, it is fixed in cron.yaml; but what I want is something like this:
cron: - description: daily summary job url: /tasks/summary schedule: every 24 hours parameters: - action: fire - target: ball Or maybe better if we can specify the HTTP method to use, and iterate through all the parameter combinations: cron: - description: daily summary job url: /tasks/summary method: POST schedule: every Monday 12:00 parameters: - action: fire, shoot, beat - target: ball, boss interval: 1 min Of course, there is some restrictions such as one pass of iteration on all the parameter combinations can not take longer time than that between any two scheduled trigger point. On Thu, Apr 9, 2009 at 9:10 PM, 风笑雪 <[email protected]> wrote: > > I think you can use this style: > > your-handler-url?action=dosomething > > And you can handler this parameter in your handler. > > I mean if you use Python, it would like this: > > action = self.request.get('action') # and action will be 'dosomething' now > > > 2009/4/9, Tim Hoffman <[email protected]>: > > > > Have a read of the docs, you will see that you can only specify a URL > > now you can encode whatever you want in it (ie params) but this is > > fixed in the yaml file. > > > > So yes as far as a set of statically defined entries in a yaml file > > can > > > > T > > > > On Apr 9, 4:11 pm, an0 <[email protected]> wrote: > >> I want my cron job to pass different parameters to trigger different > >> actions. > >> Is it possible? How to? > >> Thanks in advance. > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
