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

CeleryBeat unable to load large number of tasks #445

Open
nitishxp opened this issue Oct 21, 2021 · 4 comments
Open

CeleryBeat unable to load large number of tasks #445

nitishxp opened this issue Oct 21, 2021 · 4 comments

Comments

@nitishxp
Copy link

nitishxp commented Oct 21, 2021

Summary:

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

  • Celery Version: 5.1.2
  • Celery-Beat Version: 2.2.1

Exact steps to reproduce the issue:

  1. Load 1 million task in Periodic task
  2. Start celery beat it will be stucked forever

Detailed information

We can have multiple(in millions) periodic active tasks. Below screenshot shows that celery beat is stucked in loading tasks from db
image

@nitishxp
Copy link
Author

nitishxp commented Oct 22, 2021

I overwritten the DatabaseScheduler to have implemented threading in schedule parsing does it make sense?

image

@auvipy
Copy link
Member

auvipy commented Oct 27, 2021

can you come with a PR with that? to have more inputs and eyes?

@ktowen
Copy link

ktowen commented Oct 9, 2022

I'm having the same problem with around 30k ClockedSchedule tasks. The celery beat process seems to be stuck for some time at a stable medium cpu usage, then it drops and sends some tasks and starts again.

Any clue about where the problem could be or possible solutions? I would be happy to collaborate

@auvipy
Copy link
Member

auvipy commented Oct 13, 2022

can you please try this patch and see if that helps? #478

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