Skip to content

CancellationCleanup service stuck permanently at 100% CPU usage #18005

@gabr1elt

Description

@gabr1elt

Bug summary

CancellationCleanup constantly keeps the CPU at 90+% (the service still works tough, and with no delays)

Stopping the service as described in settings ref frees up the cpu (so I assume its that).

logs

The server only ever showed a warning once:

19:21:17.691 | WARNING | prefect.server.services.cancellationcleanup - stop(block=True)was called on CancellationCleanup but more than one loop interval (20.0 seconds) has passed. This usually means something is wrong. Ifstop()was called from inside the loop service, usestop(block=False) instead.

then it never mentioned it again

how to stop it

Resetting the DB is the only way I found to fix it (but obviously not ideal)

Maybe related

My infra crashed a few times and had to do some manual cleanup

also found this

#15231

Version info

Prefect Server: docker.io/prefecthq/prefect:3.4.0-python3.10
Postgres: docker.io/postgres:17.4

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions