dbos 1.15.0a4__py3-none-any.whl → 1.15.0a5__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/_dbos.py +4 -0
- dbos/_debouncer.py +7 -5
- dbos/_queue.py +2 -2
- {dbos-1.15.0a4.dist-info → dbos-1.15.0a5.dist-info}/METADATA +1 -1
- {dbos-1.15.0a4.dist-info → dbos-1.15.0a5.dist-info}/RECORD +8 -8
- {dbos-1.15.0a4.dist-info → dbos-1.15.0a5.dist-info}/WHEEL +0 -0
- {dbos-1.15.0a4.dist-info → dbos-1.15.0a5.dist-info}/entry_points.txt +0 -0
- {dbos-1.15.0a4.dist-info → dbos-1.15.0a5.dist-info}/licenses/LICENSE +0 -0
dbos/_dbos.py
CHANGED
|
@@ -1222,6 +1222,10 @@ class DBOS:
|
|
|
1222
1222
|
async def list_workflow_steps_async(cls, workflow_id: str) -> List[StepInfo]:
|
|
1223
1223
|
await cls._configure_asyncio_thread_pool()
|
|
1224
1224
|
return await asyncio.to_thread(cls.list_workflow_steps, workflow_id)
|
|
1225
|
+
|
|
1226
|
+
@classproperty
|
|
1227
|
+
def application_version(cls) -> str:
|
|
1228
|
+
return GlobalParams.app_version
|
|
1225
1229
|
|
|
1226
1230
|
@classproperty
|
|
1227
1231
|
def logger(cls) -> Logger:
|
dbos/_debouncer.py
CHANGED
|
@@ -89,11 +89,13 @@ def debouncer_workflow(
|
|
|
89
89
|
# Every time the debounced workflow is called, a message is sent to this workflow.
|
|
90
90
|
# It waits until debounce_period_sec have passed since the last message or until
|
|
91
91
|
# debounce_timeout_sec has elapsed.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
def get_debounce_deadline_epoch_sec() -> float:
|
|
93
|
+
return (
|
|
94
|
+
time.time() + options["debounce_timeout_sec"]
|
|
95
|
+
if options["debounce_timeout_sec"]
|
|
96
|
+
else math.inf
|
|
97
|
+
)
|
|
98
|
+
debounce_deadline_epoch_sec = dbos._sys_db.call_function_as_step(get_debounce_deadline_epoch_sec, "get_debounce_deadline_epoch_sec")
|
|
97
99
|
debounce_period_sec = initial_debounce_period_sec
|
|
98
100
|
while time.time() < debounce_deadline_epoch_sec:
|
|
99
101
|
time_until_deadline = max(debounce_deadline_epoch_sec - time.time(), 0)
|
dbos/_queue.py
CHANGED
|
@@ -61,7 +61,7 @@ class Queue:
|
|
|
61
61
|
|
|
62
62
|
registry = _get_or_create_dbos_registry()
|
|
63
63
|
if self.name in registry.queue_info_map and self.name != INTERNAL_QUEUE_NAME:
|
|
64
|
-
|
|
64
|
+
raise Exception(f"Queue {name} has already been declared")
|
|
65
65
|
registry.queue_info_map[self.name] = self
|
|
66
66
|
|
|
67
67
|
def enqueue(
|
|
@@ -75,7 +75,7 @@ class Queue:
|
|
|
75
75
|
and context.priority is not None
|
|
76
76
|
and not self.priority_enabled
|
|
77
77
|
):
|
|
78
|
-
|
|
78
|
+
raise Exception(
|
|
79
79
|
f"Priority is not enabled for queue {self.name}. Setting priority will not have any effect."
|
|
80
80
|
)
|
|
81
81
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
dbos-1.15.
|
|
2
|
-
dbos-1.15.
|
|
3
|
-
dbos-1.15.
|
|
4
|
-
dbos-1.15.
|
|
1
|
+
dbos-1.15.0a5.dist-info/METADATA,sha256=ySISelF_uzHOl3jJk5bLWR6-58WI00Ys5TdK9cEhiFk,13021
|
|
2
|
+
dbos-1.15.0a5.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
dbos-1.15.0a5.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-1.15.0a5.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=pT4BuNLDCrIQX27vQG8NlfxX6PZRU7r9miq4thJTszU,982
|
|
6
6
|
dbos/__main__.py,sha256=G7Exn-MhGrVJVDbgNlpzhfh8WMX_72t3_oJaFT9Lmt8,653
|
|
7
7
|
dbos/_admin_server.py,sha256=hubQJw5T8zGKCPNS6FQTXy8jQ8GTJxoYQaDTMlICl9k,16267
|
|
@@ -13,9 +13,9 @@ dbos/_conductor/protocol.py,sha256=q3rgLxINFtWFigdOONc-4gX4vn66UmMlJQD6Kj8LnL4,7
|
|
|
13
13
|
dbos/_context.py,sha256=cJDxVbswTLXKE5MV4Hmg6gpIX3Dd5mBTG-4lmofWP9E,27668
|
|
14
14
|
dbos/_core.py,sha256=13DNN_fpSIs42NquV80XsHV7yKwY_adKP03h_xhXok4,50493
|
|
15
15
|
dbos/_croniter.py,sha256=XHAyUyibs_59sJQfSNWkP7rqQY6_XrlfuuCxk4jYqek,47559
|
|
16
|
-
dbos/_dbos.py,sha256=
|
|
16
|
+
dbos/_dbos.py,sha256=wT4POKmTKwPYrapMiV7EhfWicFdT9qVOiw3bujcE0Lg,57261
|
|
17
17
|
dbos/_dbos_config.py,sha256=ha0Qo4kRCCi1dQZZzm1e24iMqR2Zty9LejcLxUbzlUg,25286
|
|
18
|
-
dbos/_debouncer.py,sha256=
|
|
18
|
+
dbos/_debouncer.py,sha256=9-9dlXKLRHSUSylprCw18r-7MAdFwD8-w0KkY-bEG_I,15281
|
|
19
19
|
dbos/_debug.py,sha256=0MfgNqutCUhI4PEmmra9x7f3DiFE_0nscfUCHdLimEY,1415
|
|
20
20
|
dbos/_docker_pg_helper.py,sha256=xySum4hTA8TVMBODoG19u4cXQAB1vCock-jwM2pnmSI,7791
|
|
21
21
|
dbos/_error.py,sha256=GwO0Ng4d4iB52brY09-Ss6Cz_V28Xc0D0cRCzZ6XmNM,8688
|
|
@@ -27,7 +27,7 @@ dbos/_kafka_message.py,sha256=NYvOXNG3Qn7bghn1pv3fg4Pbs86ILZGcK4IB-MLUNu0,409
|
|
|
27
27
|
dbos/_logger.py,sha256=djnCp147QoQ1iG9Bt3Uz8RyGaXGmi6gebccXsrA6Cps,4660
|
|
28
28
|
dbos/_migration.py,sha256=VAQxZXWQISifW0JpIG78lowV1MTBJ5ZC4P0YIwqxQhM,10013
|
|
29
29
|
dbos/_outcome.py,sha256=7HvosMfEHTh1U5P6xok7kFTGLwa2lPaul0YApb3UnN4,8191
|
|
30
|
-
dbos/_queue.py,sha256=
|
|
30
|
+
dbos/_queue.py,sha256=cgFFwVPUeQtrTgk7ivoTZb0v9ya8rZK4m7-G-h5gIb4,4846
|
|
31
31
|
dbos/_recovery.py,sha256=K-wlFhdf4yGRm6cUzyhcTjQUS0xp2T5rdNMLiiBErYg,2882
|
|
32
32
|
dbos/_registrations.py,sha256=bEOntObnWaBylnebr5ZpcX2hk7OVLDd1z4BvW4_y3zA,7380
|
|
33
33
|
dbos/_roles.py,sha256=kCuhhg8XLtrHCgKgm44I0abIRTGHltf88OwjEKAUggk,2317
|
|
@@ -56,4 +56,4 @@ dbos/cli/migration.py,sha256=1Y52EMc2rX7PJgJa3_KXV7oiQEO569k7aHXRofwYipo,3608
|
|
|
56
56
|
dbos/dbos-config.schema.json,sha256=47wofTZ5jlFynec7bG0L369tAXbRQQ2euBxBXvg4m9c,1730
|
|
57
57
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
58
58
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
59
|
-
dbos-1.15.
|
|
59
|
+
dbos-1.15.0a5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|