Skip to content

How to configure it to auto-clear older then n records? #774

Open
@TheKalpit

Description

@TheKalpit

How do I configure django-silk to delete (DB records & .prof files) older than x, say keep only last 1000 records?

I added the following in settings:

SILKY_MAX_RECORDED_REQUESTS = 1000
SILKY_MAX_RECORDED_REQUESTS_CHECK_PERCENT = 50

Doesn't seem to work. In fact, the server terminates without any error once the limit is reached.
I'm aware of the management command to clear the records, but that's a manual task (or additional effort to automate it). Is there a built-in way to do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions