Reputation: 20429
The doc says that HTTP requests initiated by cron job can run for 10 minutes (believe, this is about urlfetch).
My cron job does another time consuming task - e-mails sending (thru google.appengine.api.mail
). Do I also have 10 minutes for this activity (before I'll get DeadlineExceededError
)? Or, should I use task queue to send each message in the separate task?
Upvotes: 0
Views: 2182
Reputation: 1
**new CronJob(
"*/20 * * * * *",
function () {
console.log("This is a batch job started at " + new Date());
},
null,
true,
""
);**
and here is your answer
Upvotes: 0
Reputation: 41099
There is no limit on cron jobs/tasks running on Backend instances. You can configure these instances using Modules, and then target your cron job to hit one of these instances.
It may still be a good idea to queue each message as a separate task.
Upvotes: 2