开发者

Google App Engine (GAE) cron on external url: http

I try to use GAE for a cron job. But I get a server error 500. Is it because I try to cron on a external url? I cannot find any documentation on this. When I use an internal URL it works fine. But I would like to cron job a php script on my website.

Is there another way to do this? I am quite noob...

Thanks for any help Christian

This is my code:

htt开发者_开发问答p://www.mysite.com/apps/pushthis.php Trigger notifications for project every 2 minutes


You can make this work very simply. Create a small AppEngine application that answers a URL that will be called by the AE cron. That request handler can use the URL Fetch API to call your external URL. A tiny little bit of extra work, but you will accomplish your goal.

See this question for more information and practical examples of coding with URL Fetch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜