Christian Loncle
Christian Loncle

Reputation: 1584

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:

http://www.mysite.com/apps/pushthis.php Trigger notifications for project every 2 minutes

Upvotes: 3

Views: 1658

Answers (1)

Adam Crossland
Adam Crossland

Reputation: 14213

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.

Upvotes: 4

Related Questions