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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:41:03+00:00 2026-06-07T21:41:03+00:00

Are there any pure wsgi implementation of background task? I want to use local

  • 0

Are there any pure wsgi implementation of background task?

I want to use local variables under the same context directly, not serialize/deserialize to another daemon process via a broker.

Is it possible to make this happen under the current wsgi infrastructure? E.g. after return response yield, run some callback functions?

  • 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-07T21:41:05+00:00Added an answer on June 7, 2026 at 9:41 pm

    This is a duplicate of question asked on the Python WEB-SIG. I reference the same page as provided in response to the question on the Python WEB-SIG so others can see it:

    http://code.google.com/p/modwsgi/wiki/RegisteringCleanupCode

    In doing this though, it ties up the request thread and so it would not be able to handle other requests until your task has finished.

    Creating background threads at the end of a request is not a good idea unless you do it using a pooling mechanism such that you limit the number of worker threads for your tasks. Because the process can crash or be shutdown, you loose the job as only in memory and thus not persistent.

    Better to use Celery, or if you think that is too heavy weight, have a look at Redis Queue (RQ) instead.

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

Sidebar

Related Questions

Is there any prefect suggestion for data pagination? I do not want use pure
is there any example on how to use LameOnJ, Pure Java Mp3 Encoder etc.
All of the pure functional languages are strong typed. Is there any link between
Is there any way to use Google's API to retrieve a user's current zipcode
Is out there any Pure C# Silverlight video encoding lib? By video I mean
Is there any 'easy' way of having pure objective-c containers, such as NSMutableDictionary or
Are there any pure Javascript alternatives to Narcissus for running Javascript in a web
Under Linux ,if I want to pass pure string from PHP to C, how
Are there any security risks in allowing(whitelist only) pure markup tags such as a,
Is there any solution for converting Wav to Ogg or MP3 by using pure

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.