dbos 0.27.0a9__py3-none-any.whl → 0.27.0a10__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_server.py +4 -3
- {dbos-0.27.0a9.dist-info → dbos-0.27.0a10.dist-info}/METADATA +1 -1
- {dbos-0.27.0a9.dist-info → dbos-0.27.0a10.dist-info}/RECORD +6 -6
- {dbos-0.27.0a9.dist-info → dbos-0.27.0a10.dist-info}/WHEEL +0 -0
- {dbos-0.27.0a9.dist-info → dbos-0.27.0a10.dist-info}/entry_points.txt +0 -0
- {dbos-0.27.0a9.dist-info → dbos-0.27.0a10.dist-info}/licenses/LICENSE +0 -0
dbos/_admin_server.py
CHANGED
|
@@ -45,9 +45,10 @@ class AdminServer:
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
class AdminRequestHandler(BaseHTTPRequestHandler):
|
|
48
|
+
is_deactivated = False
|
|
49
|
+
|
|
48
50
|
def __init__(self, dbos: DBOS, *args: Any, **kwargs: Any) -> None:
|
|
49
51
|
self.dbos = dbos
|
|
50
|
-
self.is_deactivated = False
|
|
51
52
|
super().__init__(*args, **kwargs)
|
|
52
53
|
|
|
53
54
|
def _end_headers(self) -> None:
|
|
@@ -63,11 +64,11 @@ class AdminRequestHandler(BaseHTTPRequestHandler):
|
|
|
63
64
|
self._end_headers()
|
|
64
65
|
self.wfile.write("healthy".encode("utf-8"))
|
|
65
66
|
elif self.path == _deactivate_path:
|
|
66
|
-
if not
|
|
67
|
+
if not AdminRequestHandler.is_deactivated:
|
|
67
68
|
dbos_logger.info(
|
|
68
69
|
f"Deactivating DBOS executor {GlobalParams.executor_id} with version {GlobalParams.app_version}. This executor will complete existing workflows but will not start new workflows."
|
|
69
70
|
)
|
|
70
|
-
|
|
71
|
+
AdminRequestHandler.is_deactivated = True
|
|
71
72
|
# Stop all scheduled workflows, queues, and kafka loops
|
|
72
73
|
for event in self.dbos.stop_events:
|
|
73
74
|
event.set()
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
dbos-0.27.
|
|
2
|
-
dbos-0.27.
|
|
3
|
-
dbos-0.27.
|
|
4
|
-
dbos-0.27.
|
|
1
|
+
dbos-0.27.0a10.dist-info/METADATA,sha256=Gfag7_gwehHpSgpOJistZUvK08cQVC4C0ignrfpmvSM,5554
|
|
2
|
+
dbos-0.27.0a10.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
3
|
+
dbos-0.27.0a10.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-0.27.0a10.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=-FdBlOlr-f2tY__C23J4v22MoCAXqcDN_-zXsJXdoZ0,1005
|
|
6
6
|
dbos/__main__.py,sha256=G7Exn-MhGrVJVDbgNlpzhfh8WMX_72t3_oJaFT9Lmt8,653
|
|
7
|
-
dbos/_admin_server.py,sha256=
|
|
7
|
+
dbos/_admin_server.py,sha256=NG0JWQQer9kEslPNAA0dBv-O262sjarz7ZSlv8yird0,9053
|
|
8
8
|
dbos/_app_db.py,sha256=3j8_5-MlSDY0otLRszFE-GfenU6JC20fcfSL-drSNYk,11800
|
|
9
9
|
dbos/_classproperty.py,sha256=f0X-_BySzn3yFDRKB2JpCbLYQ9tLwt1XftfshvY7CBs,626
|
|
10
10
|
dbos/_client.py,sha256=Id-jzAUH6JMN-9WmAGyo0vm-nc0URjNIVwA2iKnCN5Q,13418
|
|
@@ -67,4 +67,4 @@ dbos/cli/cli.py,sha256=a3rUrHog5-e22KjjUPOuTjH20PmUgSP0amRpMd6LVJE,18882
|
|
|
67
67
|
dbos/dbos-config.schema.json,sha256=8KcwJb_sQc4-6tQG2TLmjE_nratfrQa0qVLl9XPsvWE,6367
|
|
68
68
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
69
69
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
70
|
-
dbos-0.27.
|
|
70
|
+
dbos-0.27.0a10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|