django celery: how to set task to run at specific interval programmatically
问题 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: 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