Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After creating a new task, all previous tasks are not running #398

Open
lionjiadong opened this issue Apr 8, 2021 · 6 comments
Open

After creating a new task, all previous tasks are not running #398

lionjiadong opened this issue Apr 8, 2021 · 6 comments

Comments

@lionjiadong
Copy link

Summary:

Include a brief descrioption of the problem here, and fill out the version info below.

  • Celery Version: 5.05
  • Celery-Beat Version: 2.2

Exact steps to reproduce the issue:

  1. in django admin add three task
    image
    interval_test, interval_test2, interval_test3
  2. Every time you create one, you will find that the previously created task will no longer run
    image
    interval测试 : Normal operation after creation,
    interval测试2 : interval测试 does not run after creation
    interval测试3 : interval测试 and interval测试2 does not run after creation
@auvipy
Copy link
Member

auvipy commented Apr 15, 2021

I am not sure its a celery issue or not

@lionjiadong
Copy link
Author

I am not sure its a celery issue or not

There will be problems with the database management plan

@yashikakhurana
Copy link

I faced the same issue when I was trying to inherit the PeriodicTask. Can you provide more insights, may be I could help then.

@lionjiadong
Copy link
Author

当我尝试继承PeriodicTask时,我遇到了同样的问题。您能否提供更多见解,也许可以帮助您。

I reset the last_run_at of all tasks every time I create or modify a task to ensure that each task will be executed as scheduled

@yashikakhurana
Copy link

have you tried restarting celery whenever you modify or create something?

@yashikakhurana
Copy link

yashikakhurana commented Apr 25, 2021

FYI my issue was resolved using signals.pre_delete() and signals.pre_save().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants