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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:06:35+00:00 2026-06-02T15:06:35+00:00

How do you prevent Celery from executing a periodic task before the previous execution

  • 0

How do you prevent Celery from executing a periodic task before the previous execution has completed?

I have a cluster of servers, linked to a common database server, executing Celery tasks, and I’m finding each server may occasionally run the same task simultaneously as well as different servers running that same task simultaneously. This is causing a lot of race conditions that are corrupting my data in painfully subtle ways.

I’ve been reading through Celery’s docs, but I can’t find any option that explicitly allows this. I found a similar question, but the suggested fix seems like a hack, as it relies on Django’s caching framework, and therefore might not be shared by all servers in a cluster, allowing multiple servers to still execute the same task at the same time.

Is there any option in Celery to record what tasks are currently running in the database, and don’t run again until the database record is cleared?

I’m using the Django-Celery module, and even though it provides pages /admin/djcelery/taskstate/ and /admin/djcelery/workerstate/, I’ve never seen any long-running tasks or workers show up there.

  • 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-02T15:06:37+00:00Added an answer on June 2, 2026 at 3:06 pm

    If I were you I’d setup a special queue for any jobs that can’t be executed simultaneously. Then you can simply startup a separate worker just for that queue.

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

Sidebar

Related Questions

I have to prevent Coldfusion's default list delimiter ',' from being entered into a
I am trying to prevent the client from disconnecting from the server. So before
I would like to prevent NaN from showing up in these text boxes: total_full,
Possible Duplicate: How to prevent My apk from decompiling as you probably know -
Is it possible to prevent a site from being scraped by any scrapers, but
How can i prevent the session store from creating a session on JSON/XML calls
How to prevent an activity from being recreated on turning screen off? What I
How can I prevent the user from inserting more than one line break in
Is it possible to prevent users from delivering change sets to a component within
i'm trying to prevent a selected item(TextBlock in Grid) in a listbox from changing

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.