login


刚刚发现gae支持了cron jobs (定时任务)
在控制台里可以看到有一项:

正好我的geo twitter项目 需要定时更新twitter上的项目(因为twitter的rate limits)

这是文档:http://code.google.com/intl/zh-CN/appengine/docs/python/config/cron.html

其实很简单 根目录建个文件 cron.yaml

比如我5分钟执行一次:

cron:
- description: refresh twitter friends timeline
  url: /event/refresh
  schedule: every 5 minutes

再上传app就可以了:P

    Share in Google Reader     Share in Twitter..     Share in Friendfeed     Leave a Reply

3 Response to “GoogleAppEngine支持了cron jobs!”

  1. keakon Says:

    可以用urlfetch来检查我的网站是否被又出问题了~
    只能有20条,不过已经够用了

    现在不担心counter之类的计算了,每小时自动更新一下缓存就行了

  2. JasonITMG Says:

    我在注册GoogleAppEngine时,在GoogleAppEngine这里不论输入什么都报这个错误: Sorry, "dfgdfgdfgdf" is not available. Application Identifiers may contain only numbers, lowercase letters or hyphens and must be between 6 and 30 characters. 我想做的到为什么,可以发到我的邮件中吗?

  3. LinCong.JavaTech Says:

    哦 这个是说 你注册app时候 app标识必须是6到30个的由英文和数字组成的字符 也可能你的app id 被别人注册过了 换个id 试试吧:-)

Leave a Reply


Logo

About Me

  • A Computer Geek in Beijing, China. Focus on Web2.0 Technology: Google App Engine, Python, Django, Software Architecture, Agile, JAVA, J2EE, JavaScript, etc.

    Coding for fun, Coding with passion :-) It's my life!

Most Popular Posts

Tags