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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:09:34+00:00 2026-06-15T13:09:34+00:00

My django web-app logic is heavily geared towards background task execution (both periodic as

  • 0

My django web-app logic is heavily geared towards background task execution (both periodic as well as stand alone, synchronous as well as asynchronous). All the research seems to point to using Celery being the most recommended approach. I plan to eventually deploy on Heroku and the fact that it has support for Celery + Redis (what I’m using for local development) is a big plus for me.

However I need more extensive scheduling capabilities than celery provides. I need some of my periodic tasks to be able to run schedules like ‘run on last sun of the month’ etc. So I’ve implemented my own models in django to store a recurrence rule and other needed parameters.

Now I’m stumped with how to interface my tables with celery. Ideally what I’d like to do is to have my own Job model which has the schedule, the task which should be run when it becomes due as well as the parameters for the task. Sort of like function ptr in C++. Then I would run a daemon which keeps checking the job queue for which job has become due, if its periodic it creates the next job instance and pushes it into queue, then runs the associated task with parameters using celery’s delay method or similar.

questions:

  1. Does this approach even make sense?
  2. If not what other alternative approach(es) can I use
  3. If yes how do I go about designing that Job/Event queue…

I’d love to hear a better approach to doing this or if there’s an existing implementation of a job queue that might be suitable or a way to use celery’s job queue itself…

Thanks heaps..

  • 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-15T13:09:35+00:00Added an answer on June 15, 2026 at 1:09 pm

    The periodic tasks in Celery works pretty much like this. There’s a dedicated scheduler process (celery beat) which simply sends off tasks when they are due.

    You can also create new schedulers to use with beat by subclassing the celery.beat.Scheduler class, and you can create custom schedules too (like the crontab schedule that is already built-in) by subclassing celery.schedules.schedule.

    There’s a database-backed scheduler implementation in the django-celery extension (djcelery.schedulers.DatabaseScheduler), which uses many tricks to avoid too frequent polling of the database and so on (sadly it’s not well commented).

    Scheduler: https://github.com/celery/celery/tree/master/celery/beat.py
    schedules: https://github.com/celery/celery/tree/master/celery/schedules.py
    DatabaseScheduler: https://github.com/celery/django-celery/tree/master/djcelery/schedulers.py

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

Sidebar

Related Questions

I'm on developing iphone app that uses backend web service(django). To login the web
I'm making a Django web-app which allows a user to build up a set
I'm creating a web app with Django. Since I'm very familiar with Apache I
I'm developing a web app in Python 2.7 using Django 1.4 with PyCharm 2.5
We are working on a web app with the Django framework and we are
This is using the web app framework, not Django. The following template code is
I am deciding whether to use rails or django for a smallish web app.
I'm working on a simple webservice in django. This is my first web app
We're replacing a static web-site with a Django app. All the uri's will change.
I have a reviews/ratings web application, a la Digg. My django app content has

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.