I want to call external urls using cron job of Google App Engine. And I also want to induce sleep between cron jobs.
Is that possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t directly fetch external URLs using a cron job, but this is easy to work around: Just define a cron job that, as it sole activity, fetches an external URL using the urlfetch API.
Sleeping inside a request is possible as long as it doesn’t exceed 30 seconds of execution time, but generally a very bad idea. Instead, use the task queue with a delay so the task will execute when you want it to.