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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:46:21+00:00 2026-06-11T07:46:21+00:00

creating a small web application to be deployed on Heroku, where we would like

  • 0

creating a small web application to be deployed on Heroku, where we would like to update an entry in the database whenever a user clicks on an update button. Every day, we would automatically go through and update all the entries which had not been updated by some user in the last 24 hours.

The update function and the web application is written in Django, but because the update involves making a request to another website, it takes a few seconds to process, and I was thinking about making these requests perform in parallel, so multiple users can click on different update buttons at the same time, and have it go through quickly.

We were thinking about using the Scheduler on Heroku for the 24 hour update, but is there a threading application/implementation we could use for this kind of use case? Any tips would be awesome.

  • 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-11T07:46:22+00:00Added an answer on June 11, 2026 at 7:46 am

    Celery is great for scheduled tasks like that. I found a hack to set up workers on Heroku here, although I haven’t used Heroku so you’re on your own there.

    The celery usage would look as simple as:

    @celery.task
    def do_costly_database_update(some_data):
        # do stuff
        pass
    
    # And then in a view...
    do_costly_database_update.delay(some_data)
    

    Edit:
    Celery also handles recurring tasks like your nightly updates with a config entry like this:

    'every-night': {
        'task': 'tasks.do_costly_database_update',
        'schedule': crontab(hour=0, minute=0),
        'args': some_data,
    },
    

    All of the Celery docs are really good.

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

Sidebar

Related Questions

I'm creating a small web application. The application have several screens (list, inner list,
I am creating a small Java web application, where I have defined a routes
I'm creating a small Web-Application with PHP, JavaScript, Ajax and of course HTML and
I'm creating a small application on an embedded device that has a boa web
I am creating a web application for my company. My application has a button
I'm creating a small application that I will distribute via NuGet. My web app
I am creating a small commercial web project running Apache/WSGI/Django/MySQL. I have a development
I'm creating a small framework for my web projects in PHP so I don't
I am creating small django application which holds some few questions (and answers for
I am creating a small application which will perform say 4 different, time consuming

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.