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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:18:10+00:00 2026-05-25T00:18:10+00:00

I found that I can set the task to run at specific interval at

  • 0

I found that I can set the task to run at specific interval at specific times from here, but that was only done during task declaration. How do I set a task to run periodically dynamically?

  • 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-25T00:18:11+00:00Added an answer on May 25, 2026 at 12:18 am

    The schedule is derived from a setting, and thus seems to be immutable at runtime.

    You can probably accomplish what you’re looking for using Task ETAs. This guarantees that your task won’t run before the desired time, but doesn’t promise to run the task at the designated time—if the workers are overloaded at the designated ETA, the task may run later.

    If that restriction isn’t an issue, you could write a task which would first run itself like:

    @task
    def mytask():
        keep_running = # Boolean, should the task keep running?
        if keep_running:
            run_again = # calculate when to run again
            mytask.apply_async(eta=run_again)
        # ... do the stuff you came here to do ...
    

    The major downside of this approach is that you are relying on the taskstore to remember the tasks in flight. If one of them fails before firing off the next one, then the task will never run again. If your broker isn’t persisted to disk and it dies (taking all in-flight tasks with it), then none of those tasks will run again.

    You could solve these issues with some kind of transaction logging and a periodic “nanny” task whose job it is to find such repeating tasks that died an untimely death and revive them.

    If I had to implement what you’ve described, I think this is how I would approach it.

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

Sidebar

Related Questions

I found that I can set a tooltip on a QLineEdit as such: equation
I found that you can't read from some sites using Python's urllib2(or urllib). An
In a recent issue , I've found that DJGPP can only accept the DOS
Based on my previous question here and here , I found that I can
I found Layers that will save the project as a Photoshop file that can
I just installed Visual SVN Server and I just found that I can access
By looking into the Open JPA website i've found that i can log the
I am using jQuery's cycle plugin, and found that I can call up the
When I open a file for reading in Haskell, I've found that I can't
I found out that I can use a different theme in an C# WPF

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.