dbos 0.13.0a0__py3-none-any.whl → 0.13.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dbos might be problematic. Click here for more details.
- dbos/_admin_sever.py +0 -14
- {dbos-0.13.0a0.dist-info → dbos-0.13.0a1.dist-info}/METADATA +1 -2
- {dbos-0.13.0a0.dist-info → dbos-0.13.0a1.dist-info}/RECORD +6 -6
- {dbos-0.13.0a0.dist-info → dbos-0.13.0a1.dist-info}/WHEEL +0 -0
- {dbos-0.13.0a0.dist-info → dbos-0.13.0a1.dist-info}/entry_points.txt +0 -0
- {dbos-0.13.0a0.dist-info → dbos-0.13.0a1.dist-info}/licenses/LICENSE +0 -0
dbos/_admin_sever.py
CHANGED
|
@@ -6,8 +6,6 @@ from functools import partial
|
|
|
6
6
|
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
|
|
7
7
|
from typing import TYPE_CHECKING, Any, List, TypedDict
|
|
8
8
|
|
|
9
|
-
import psutil
|
|
10
|
-
|
|
11
9
|
from ._logger import dbos_logger
|
|
12
10
|
from ._recovery import recover_pending_workflows
|
|
13
11
|
|
|
@@ -16,7 +14,6 @@ if TYPE_CHECKING:
|
|
|
16
14
|
|
|
17
15
|
_health_check_path = "/dbos-healthz"
|
|
18
16
|
_workflow_recovery_path = "/dbos-workflow-recovery"
|
|
19
|
-
_perf_path = "/dbos-perf"
|
|
20
17
|
_deactivate_path = "/deactivate"
|
|
21
18
|
|
|
22
19
|
|
|
@@ -55,17 +52,6 @@ class AdminRequestHandler(BaseHTTPRequestHandler):
|
|
|
55
52
|
self.send_response(200)
|
|
56
53
|
self._end_headers()
|
|
57
54
|
self.wfile.write("healthy".encode("utf-8"))
|
|
58
|
-
elif self.path == _perf_path:
|
|
59
|
-
# Compares system CPU times elapsed since last call or module import, returning immediately (non blocking).
|
|
60
|
-
cpu_percent = psutil.cpu_percent(interval=None) / 100.0
|
|
61
|
-
perf_util: PerfUtilization = {
|
|
62
|
-
"idle": 1.0 - cpu_percent,
|
|
63
|
-
"active": cpu_percent,
|
|
64
|
-
"utilization": cpu_percent,
|
|
65
|
-
}
|
|
66
|
-
self.send_response(200)
|
|
67
|
-
self._end_headers()
|
|
68
|
-
self.wfile.write(json.dumps(perf_util).encode("utf-8"))
|
|
69
55
|
elif self.path == _deactivate_path:
|
|
70
56
|
dbos_logger.info("Deactivating DBOS")
|
|
71
57
|
# Stop all scheduled workflows, queues, and kafka loops
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dbos
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.0a1
|
|
4
4
|
Summary: Ultra-lightweight durable execution in Python
|
|
5
5
|
Author-Email: "DBOS, Inc." <contact@dbos.dev>
|
|
6
6
|
License: MIT
|
|
@@ -16,7 +16,6 @@ Requires-Dist: opentelemetry-sdk>=1.27.0
|
|
|
16
16
|
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.27.0
|
|
17
17
|
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
18
18
|
Requires-Dist: fastapi[standard]>=0.115.2
|
|
19
|
-
Requires-Dist: psutil>=6.0.0
|
|
20
19
|
Requires-Dist: tomlkit>=0.13.2
|
|
21
20
|
Requires-Dist: psycopg[binary]>=3.1
|
|
22
21
|
Description-Content-Type: text/markdown
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
dbos-0.13.
|
|
2
|
-
dbos-0.13.
|
|
3
|
-
dbos-0.13.
|
|
4
|
-
dbos-0.13.
|
|
1
|
+
dbos-0.13.0a1.dist-info/METADATA,sha256=fmkSDtDTAm5-GOBLH3JHn-C5pg-U-t8xLS8561GQUKk,4988
|
|
2
|
+
dbos-0.13.0a1.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
dbos-0.13.0a1.dist-info/entry_points.txt,sha256=z6GcVANQV7Uw_82H9Ob2axJX6V3imftyZsljdh-M1HU,54
|
|
4
|
+
dbos-0.13.0a1.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=CxRHBHEthPL4PZoLbZhp3rdm44-KkRTT2-7DkK9d4QQ,724
|
|
6
|
-
dbos/_admin_sever.py,sha256=
|
|
6
|
+
dbos/_admin_sever.py,sha256=3sEAkti0YjSdCdavQyqTd9GYXOTgkF10E2sNR-i6lTo,3213
|
|
7
7
|
dbos/_app_db.py,sha256=_tv2vmPjjiaikwgxH3mqxgJ4nUUcG2-0uMXKWCqVu1c,5509
|
|
8
8
|
dbos/_classproperty.py,sha256=f0X-_BySzn3yFDRKB2JpCbLYQ9tLwt1XftfshvY7CBs,626
|
|
9
9
|
dbos/_context.py,sha256=SJZTOB-saxCNNGT2LLop9LasqR-X2MQLTay3rjXRUCw,17748
|
|
@@ -51,4 +51,4 @@ dbos/cli.py,sha256=Ks1jzP0tWju5jIwbLfrJpLXmk5gkU3v18FLJiNi5p8Q,8304
|
|
|
51
51
|
dbos/dbos-config.schema.json,sha256=tgtiirOTEdIRI27eI75UAER9sAV84CDnv5lRPt0qiuQ,5672
|
|
52
52
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
53
53
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
54
|
-
dbos-0.13.
|
|
54
|
+
dbos-0.13.0a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|