Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7857733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:07:52+00:00 2026-06-02T21:07:52+00:00

We have two cron jobs that hit two different dynamic backends and both are

  • 0

We have two cron jobs that hit two different dynamic backends and both are having the same problem. I’m able to duplicate the issue by navigating to the URLs that the cron jobs execute directly in the browser.

Our app has a fairly high cold start time. When I navigate to the URL that uses backends, I see the following error

Error: Server Error
The service you requested is not available yet.

Please try again in 30 seconds.

In the logs, I see the request to /_ah/start (we don’t have a specific handler for this) for the backend with this message:

 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.

Then what I did was refresh the backend URL and it worked fine.

So my theory is that the cron job would work fine if the backend was already loaded. If it’s not, it doesn’t wait long enough to see if the backend will load up.

Assuming that’s correct, is there a way to have the cron job wait until /_ah/start has finished?

Two other options are to use a resident instance which we’d rather not do, or to improve our cold startup time which is on the todo list but hasn’t been an issue for us until now (we use a resident instance for the frontend).

The backend is a B1. Suppose we could upgrade this but again, being a cash-strapped startup, I’d rather not.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T21:07:54+00:00Added an answer on June 2, 2026 at 9:07 pm

    Cron doesn’t have a retry feature which taskqueue has, so I’d recommend using frontend cron in order to put a task onto a Task Queue with a dynamic backend instance. That way, cron request itself will be handled by a vacant frontend instance, which is more reliable than what you’re doing now, and your backend task execution will be retried when in failure.

    For making the first cron call robuster, you can make the cron request several times for one particular backend task, and upon putting a task, name a task something associated to a particular task(e.g. 20120430-task1 or something), catch errors for task duplication(and do nothing in the catch clause except for logging).

    For more details about named task, please see:
    https://developers.google.com/appengine/docs/java/taskqueue/overview#Task_Names

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two ruby script cron jobs that I'm trying to run under Ubuntu
I have two different applications (site + some cron utility) that are using the
I have two shell scripts to write that will be executed nightly via cron
Here's the problem I'm trying to solve: I have a dynamic php-driven website that
I have two applications written in Java that communicate with each other using XML
I've got a script that calls two functions, A and B, from the same
I have two file 'mail.php' and 'cron.php' . 'mail.php' receives email address from a
I have a database that has two tables, one of which contains a foreign
I have two commands in a cron job like this: mysql -xxxxxx -pyyyyyyyyyyv -hlocalhost
Suppose I have ten cron jobs running in parallel which fetch entries from database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.