Commit Graph

27 Commits

Author SHA1 Message Date
Donkie
649c074bb3 Fix uvicorn doing its own thing when logging
Resolves #532
2024-11-25 20:21:28 +01:00
Donkie
21d541a680 Added script to download files from external db 2024-05-12 10:48:33 +02:00
Donkie
bc32f1e890 Now supports running under a sub path
Just set the SPOOLMAN_BASE_PATH environment variable and it should work.

Resolves #95
2024-05-10 11:37:09 +02:00
Dmitry Belousov
91d922d0b8 fixed version prometheus-client
added env variable SPOOLMAN_METRICS_ENABLED for enabled database collector

set metrics path as /metrics

checked Null values at vendors, init weight and price
removed some logs
2024-04-15 00:17:36 +03:00
Dmitry Belousov
28b2bfec50 Added prometheus client
Added scheduler for compute current spool metrics and info
2024-04-09 15:25:09 +03:00
Donkie
0dee856e80 Added env vars to override all storage dirs 2023-11-25 21:59:05 +01:00
Donkie
d119a27cc2 Added separate get_logs_dir function for logs dir
Instead of piggy-backing on the data dir
2023-11-25 21:42:56 +01:00
Donkie
fef41a5628 Added warning if in docker and data dir isn't mounted
Had to remove the VOLUME definition in the dockerfile for this, otherwise the data dir would always be mounted by an anonymous volume if the user didn't mount it correctly, so the python script wouldn't be able to detect it.
2023-11-07 21:45:58 +01:00
Donkie
a9f19774e4 Added an explicit data folder permissions check on startup
It will try resolve the permission issue on its own, but if not successful it will crash with a helpful message.
2023-11-06 22:17:36 +01:00
Donkie
1a3efd9ea9 Added git commit and build date env and API 2023-09-17 10:51:28 +02:00
Donkie
3b8db0b5f7 Expose X-Total-Count header 2023-09-16 11:13:30 +02:00
Donkie
9e46de9007 Moved SPA definition to a new file 2023-09-04 20:22:31 +02:00
Donkie
e5d1d7f944 Enabled gzip compression 2023-07-13 23:02:35 +02:00
Donkie
b9ee4626d3 Moved version to the FastAPI app instead 2023-07-10 11:45:46 +02:00
Donkie
9d09655bf7 Now printing pyproject.toml version on startup 2023-07-08 23:34:16 +02:00
Donkie
f24b9610e8 Added automatic nightly SQLite backups
Resolves #22
2023-07-04 14:59:05 +02:00
Donkie
d201f17e5e Improved manually specifying sqlite db 2023-07-04 12:10:14 +02:00
Donkie
720ec30812 Fixed dependencies on Python >3.9 versions 2023-06-30 23:28:30 +02:00
Donkie
7c8d13e8a3 Cleaned up logging code 2023-06-25 16:28:23 +02:00
Donkie
235236d435 Ruff fixes 2023-05-28 22:55:11 +02:00
Donkie
639f91bd49 Client: app is now properly loaded at any URL 2023-05-28 22:50:04 +02:00
Donkie
de1bf05922 Added Alembic for migrations 2023-05-27 23:14:06 +02:00
Donkie
ecc34f3669 Added a debug mode 2023-05-14 18:54:05 +02:00
Donkie
0269518175 Added a basic web UI 2023-05-10 21:11:10 +02:00
Donkie
1c59e0efd5 Added logging level env var 2023-05-09 21:44:25 +02:00
Donkie
1a148c0991 Added proper support for all databases 2023-04-06 16:19:33 +02:00
Donkie
6fd9662c42 Renamed to Spoolman
Spoolson just didn't sound that good after all
2023-04-02 19:19:15 +02:00