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

  • Home
  • SEARCH
  • 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 3663240
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:30:27+00:00 2026-05-19T01:30:27+00:00

I’m a real coding n00b so apologies if this is a simple or basic

  • 0

I’m a real coding n00b so apologies if this is a simple or basic question.

I’m coding on Python, Webapp, Appengine.

My question, is it possible to carry on working after I’ve written out the page? And is that the best way to do something? Basically, when someone creates a list on my site (www.7bks.com) I want to carry on working for a little bit to do some ‘post-processing’ on the books they’ve just chosen.

Currently I have something like this (pseudocode!)

class InputList(webapp.RequestHandler):
    def post(self):
        #get books data from the post and put in datastore
        list = List()
        list = self.request.get('books')
        list.put()

        #redirect the user to the new list
        self.redirect("http://www.7bks.com/list/&s" % list.id)

Now, I have some slow (involving API calls) post-processing I want to do to each book in the list. I don’t want to slow down redirecting the user and generating the list page because my post-processing doesn’t directly affect the list page. So could I do this?

class InputList(webapp.RequestHandler):
    def post(self):
        #get books data from the post and put in datastore
        list = List()
        list = self.request.get('books')
        list.put()

        #redirect the user to the new list
        self.redirect("http://www.7bks.com/list/&s" % list.id)

        #carry on working behind the scenes independently of the user
        for book in list:
            data = heavyprocessing(book)

Would that cause my application to effectively serve the redirect and then carry on working behind the scenes?

Are there better ways of doing this? I’m aware I could use CRON but I’d like this heavy processed data fairly soon after I create the list, but not immediately. Feels like Cron might not be the right answer (unless I have a CRON script to run every minute or so and check for new books to process?)

I know it’s not really async my question but I couldn’t think of a good way to phrase it. I’m sure there’s some standard terminology for this kind of thing but I don’t know what it is. Thanks 🙂

Tom

  • 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-05-19T01:30:28+00:00Added an answer on May 19, 2026 at 1:30 am

    Check out the Task Queue API.

    Task or message queues tend to be the way to go about doing some sort of work that is initiated by a user request, but not necessarily completed within the time frame of that request’s execution.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm making a simple page using Google Maps API 3. My first. One marker
I have some data like this: 1 2 3 4 5 9 2 6
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.