dbos 0.24.0a14__py3-none-any.whl → 0.25.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/_conductor/conductor.py +3 -1
- dbos/_dbos.py +9 -0
- {dbos-0.24.0a14.dist-info → dbos-0.25.0a1.dist-info}/METADATA +1 -1
- {dbos-0.24.0a14.dist-info → dbos-0.25.0a1.dist-info}/RECORD +7 -7
- {dbos-0.24.0a14.dist-info → dbos-0.25.0a1.dist-info}/WHEEL +0 -0
- {dbos-0.24.0a14.dist-info → dbos-0.25.0a1.dist-info}/entry_points.txt +0 -0
- {dbos-0.24.0a14.dist-info → dbos-0.25.0a1.dist-info}/licenses/LICENSE +0 -0
dbos/_conductor/conductor.py
CHANGED
|
@@ -34,7 +34,9 @@ class ConductorWebsocket(threading.Thread):
|
|
|
34
34
|
def run(self) -> None:
|
|
35
35
|
while not self.evt.is_set():
|
|
36
36
|
try:
|
|
37
|
-
with connect(
|
|
37
|
+
with connect(
|
|
38
|
+
self.url, open_timeout=5, logger=self.dbos.logger
|
|
39
|
+
) as websocket:
|
|
38
40
|
self.websocket = websocket
|
|
39
41
|
while not self.evt.is_set():
|
|
40
42
|
message = websocket.recv()
|
dbos/_dbos.py
CHANGED
|
@@ -981,6 +981,15 @@ class DBOS:
|
|
|
981
981
|
), "workflow_id is only available within a DBOS operation."
|
|
982
982
|
return ctx.workflow_id
|
|
983
983
|
|
|
984
|
+
@classproperty
|
|
985
|
+
def step_id(cls) -> int:
|
|
986
|
+
"""Return the step ID for the current context. This is a unique identifier of the current step within the workflow."""
|
|
987
|
+
ctx = assert_current_dbos_context()
|
|
988
|
+
assert (
|
|
989
|
+
ctx.is_within_workflow()
|
|
990
|
+
), "step_id is only available within a DBOS workflow."
|
|
991
|
+
return ctx.function_id
|
|
992
|
+
|
|
984
993
|
@classproperty
|
|
985
994
|
def parent_workflow_id(cls) -> str:
|
|
986
995
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
dbos-0.
|
|
2
|
-
dbos-0.
|
|
3
|
-
dbos-0.
|
|
4
|
-
dbos-0.
|
|
1
|
+
dbos-0.25.0a1.dist-info/METADATA,sha256=8wLgVKImx_uC7Fo8ozgT7Y9n0hMy_Ew4KwWy_M3Q8FM,5521
|
|
2
|
+
dbos-0.25.0a1.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
dbos-0.25.0a1.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-0.25.0a1.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=uq9LP5uY96kIS9N0yKqlvDwADmtg_Hl30uSUhyuUr-4,754
|
|
6
6
|
dbos/__main__.py,sha256=P7jAr-7L9XE5mrsQ7i4b-bLr2ap1tCQfhMByLCRWDj0,568
|
|
7
7
|
dbos/_admin_server.py,sha256=YiVn5lywz2Vg8_juyNHOYl0HVEy48--7b4phwK7r92o,5732
|
|
@@ -10,13 +10,13 @@ dbos/_classproperty.py,sha256=f0X-_BySzn3yFDRKB2JpCbLYQ9tLwt1XftfshvY7CBs,626
|
|
|
10
10
|
dbos/_cloudutils/authentication.py,sha256=V0fCWQN9stCkhbuuxgPTGpvuQcDqfU3KAxPAh01vKW4,5007
|
|
11
11
|
dbos/_cloudutils/cloudutils.py,sha256=YC7jGsIopT0KveLsqbRpQk2KlRBk-nIRC_UCgep4f3o,7797
|
|
12
12
|
dbos/_cloudutils/databases.py,sha256=_shqaqSvhY4n2ScgQ8IP5PDZvzvcx3YBKV8fj-cxhSY,8543
|
|
13
|
-
dbos/_conductor/conductor.py,sha256=
|
|
13
|
+
dbos/_conductor/conductor.py,sha256=udu8atyYYrs5bCfokie9ttjHlIg0FMo1p0-24IoneFs,15252
|
|
14
14
|
dbos/_conductor/protocol.py,sha256=MWY3SuIeY6GN2Vg3wQjcxiT0d4zz4ccGzdEkmYYJ6t0,5633
|
|
15
15
|
dbos/_context.py,sha256=Ue5qu3rzLfRmPkz-UUZi9ZS8iXpapRN0NTM4mbA2QmQ,17738
|
|
16
16
|
dbos/_core.py,sha256=_a_rSkAWNLoHqzQbkqez0mpctkjDs301123ti3wmKHk,41340
|
|
17
17
|
dbos/_croniter.py,sha256=XHAyUyibs_59sJQfSNWkP7rqQY6_XrlfuuCxk4jYqek,47559
|
|
18
18
|
dbos/_db_wizard.py,sha256=YEW2qoy6hfHQv2fZ_4nHiPUeHMFofPpNTolJ1Kvw7AQ,8394
|
|
19
|
-
dbos/_dbos.py,sha256=
|
|
19
|
+
dbos/_dbos.py,sha256=GMnSMBBsJIZIzuB3SqLHIJWP5dlWkUyTuIaSUuBOOMY,43967
|
|
20
20
|
dbos/_dbos_config.py,sha256=rWGy8mB7uLGRgkAybBEz-ogsJQYJpXY41cXNy5eITMs,21513
|
|
21
21
|
dbos/_debug.py,sha256=mmgvLkqlrljMBBow9wk01PPur9kUf2rI_11dTJXY4gw,1822
|
|
22
22
|
dbos/_error.py,sha256=B6Y9XLS1f6yrawxB2uAEYFMxFwk9BHhdxPNddKco-Fw,5399
|
|
@@ -65,4 +65,4 @@ dbos/cli/cli.py,sha256=pet2vf4GLlSDfxfQbsplM9uewD6pJK2ZpLgZlwgBU5w,15627
|
|
|
65
65
|
dbos/dbos-config.schema.json,sha256=HtF_njVTGHLdzBGZ4OrGQz3qbPPT0Go-iwd1PgFVTNg,5847
|
|
66
66
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
67
67
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
68
|
-
dbos-0.
|
|
68
|
+
dbos-0.25.0a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|