LA_
LA_

Reputation: 20429

Does cron job has time limit of 10 minutes?

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

Answers (2)

Muhammad fayyaz
Muhammad fayyaz

Reputation: 1

yeah it is possible to make a time limit for corn job. I also doing same job for my **project shopliame.

**new CronJob(
"*/20 * * * * *",
function () {
  console.log("This is a batch job started at " + new Date());
},
null,
true,
""

);**

and here is your answer

Upvotes: 0

Andrei Volgin
Andrei Volgin

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

Related Questions