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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:20:34+00:00 2026-05-29T08:20:34+00:00

Question is relevant to this and this ; the difference is, I’d prefer something

  • 0

Question is relevant to this and this;

the difference is, I’d prefer something with possibly more precision and low load (per-minute cron job isn’t preferable for those) and with minimal overhead (i.e. installing celery with rabbitmq seems like a big overkill).

An example task for such is personal reminders server (with reminders that could be edited over web and sent out through e-mail or XMPP).

I’m probably looking for something more like node.js’s setTimeout but for django (and though I might prefer to implement reminders in node.js anyway, it’s still a possibly interesting question).

For example, it’s possible to start new threads in django app (with functions consisting of sleep() and send()); in what ways this can be bad?

  • 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-29T08:20:35+00:00Added an answer on May 29, 2026 at 8:20 am

    The problem with using threads for this solution are the typical problems with Python threads that always drive people towards multi-process solutions instead. The problem is compounded here by the fact your thread isn’t driven by the normal request-response cycle. This is summarized nicely by Malcolm Tredinnick here:

    Have to disagree. Threads are not a good solution to this problem. The
    issue is process management. As written, your threads will never be
    rejoined. Webserver processes have a lifecycle uncontrollable by you
    (the MaxRequestsPerChild Apache parameter and similar things in other
    servers) and you are messing with that by using threads.

    If you need a process with a lifecycle that is not matched by the
    request-response path — something long running and independent of the
    response — a completely separate process is definitely the right model
    to use. Using a thread is tying it to the response lifecycle, which
    wil have unintended side-effects.

    A possible solution for you might be to have a long running process performing your tasks which gets a wake-up signal from a light cron process.

    Another possibility would be build something using 0mq, which is much lighter than AMQP style queues (at the cost of some features of course). Tarek Ziade is working on a Mozilla project called powerhose that uses 0mq, looks super simple, and has a heartbeat capability with resolution to the second.

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

Sidebar

Related Questions

I have two tables (well, two relevant for this question) : Bets (holds the
This should be a simple question, but I just can't recall the relevant API.
My question is quite relevant to something asked before but I need some practical
NOTE: the original question is moot but scan to the bottom for something relevant.
EDIT 22 March 2011 : This question is no longer that relevant since Youtube
I saw this relevant question but my situation is different so asking this again.
I am not sure if this question is relevant but I see the expression
Ok, i've read most relevant questions asked here previously on this but I still
Though it's on the edge of programming questions, I think this is still relevant
Not really a programming question, but relevant to many programmers... Let's say I have

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.