Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a time limit to Cron jobs in Google Apps?

I have created a cron job to scan rss/atom feeds but want to know if there is a timeout on this.

The documentation says that requests are limited to 30 seconds; is a cron job a regular request that is subject to this restriction?

Should I break the job up into one scan per cron job just to be on the safe side, or is there a better way?

I was thinking of maybe having the cron job spawn tasks into the task queue that would do the resource fetching (so each task could fetch one resource, and hopefully none would overrun the 30 second limit).

Any advice would be appreciated.

like image 803
download Avatar asked Aug 18 '10 02:08

download


1 Answers

Cron jobs are subject to a 10 minute deadline, not 30 seconds.

See App Engine version 1.4 release page:

No more 30-second limit for background work - With this release, we’ve significantly raised this limit for offline requests from Task Queue and Cron: you can now run for up to 10 minutes without interruption.

@Alex Martelli's answer was correct at the time he wrote it, but is now out of date.

like image 191
speedplane Avatar answered Sep 20 '22 08:09

speedplane