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 7935619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:58:46+00:00 2026-06-03T21:58:46+00:00

I have an app running on a backend instance. It has 11 tasks. The

  • 0

I have an app running on a backend instance. It has 11 tasks. The first one is started by /_ah/start and it, in turn, starts the other ten, the worker tasks. The worker tasks have this structure:

done = False
while not done:
    do_important_stuff()
    time.sleep (30)
    if a_long_time_has_passed():
        done = True

The execution behavior on app engine is the same every time. The scheduling task runs and enqueues the 10 worker tasks. The first seven worker tasks start running, executing correctly. The last three sit in the queue, never running. The task queue app console shows all ten tasks in the queue with seven of them running.

The app also stop responding to HTTP requests, returning 503 status codes with the logs not showing that my http handlers are getting invoked.

The worker task queue is configured with a maximum rate of 1/s and 2 buckets. It’s curious that the admin console shows that the enforced rate is 0.1 sec. Since the tasks run forever, they aren’t returning unsuccessful completion status codes. And the cpu load is negligible. The workers mostly do a URL fetch and then wait 30 seconds to do it again.

The logs are not helpful. I don’t know where to go to find diagnostics that will help me figure it out. I’m testing in a free account. Could there be a limit of 8 tasks executing at one time? I see nothing like that in the documentation, but I’ve run out of ideas. Eventually, I’d like to run even more tasks in parallel.

Thanks for any advice you can give me.

  • 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-03T21:58:47+00:00Added an answer on June 3, 2026 at 9:58 pm

    There’s a limit to how many simultaneous requests a backend instance will process, and it sounds like you’re running into that limit.

    Alternatives include:

    • Use regular task queues rather than ones against a backend
    • Start more than one instance of your backend
    • Use threading to start threads yourself from the start request, rather than relying on the task queue to do it for you

    Note that if your tasks are CPU bound, you’re not going to get any extra benefit from running 10 of them over 5, 2, or maybe even 1.

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

Sidebar

Related Questions

I have an app running with: one instance of nginx as the frontend (serving
I have an app running Rails 2.3.5 that has a JSON API for much
I have PhoneGap app running in Android. When the app starts, it inserts approximately
I have a rails app running on port 3000. The page in question has
I'd like to start a long running task on the Backend instance. This backend
I have two servers: one running a django app and one running both a
I have a windows app which has MySQL backend. I have wampserver installed on
I have a few sites running a php app with a mysql backend. They
I have an iPhone app running in the simulator that won't quit. I also
I have a BlackBerry app running in the background that needs to know when

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.