File: status.py

package info (click to toggle)
pypaperless 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: python: 5,607; sh: 26; makefile: 3
file content (33 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""Status snapshot."""

DATA_STATUS = {
    "pngx_version": "2.6.1",
    "server_os": "Linux-6.6.12-linuxkit-aarch64-with-glibc2.36",
    "install_type": "docker",
    "storage": {
        "total": 494384795648,
        "available": 103324229632,
    },
    "database": {
        "type": "sqlite",
        "url": "/usr/src/paperless/data/db.sqlite3",
        "status": "OK",
        "error": None,
        "migration_status": {
            "latest_migration": "paperless.0003_alter_applicationconfiguration_max_image_pixels",
            "unapplied_migrations": [],
        },
    },
    "tasks": {
        "redis_url": "redis://broker:6379",
        "redis_status": "OK",
        "redis_error": None,
        "celery_status": "OK",
        "index_status": "OK",
        "index_last_modified": "2024-03-06T07:10:55.370884+01:00",
        "index_error": None,
        "classifier_status": "OK",
        "classifier_last_trained": "2024-03-06T07:05:01.281804+00:00",
        "classifier_error": None,
    },
}