dbos 1.15.0a9__py3-none-any.whl → 2.1.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.
- dbos/_debouncer.py +5 -1
- dbos/_sys_db.py +13 -14
- {dbos-1.15.0a9.dist-info → dbos-2.1.0a1.dist-info}/METADATA +1 -1
- {dbos-1.15.0a9.dist-info → dbos-2.1.0a1.dist-info}/RECORD +7 -7
- {dbos-1.15.0a9.dist-info → dbos-2.1.0a1.dist-info}/WHEEL +0 -0
- {dbos-1.15.0a9.dist-info → dbos-2.1.0a1.dist-info}/entry_points.txt +0 -0
- {dbos-1.15.0a9.dist-info → dbos-2.1.0a1.dist-info}/licenses/LICENSE +0 -0
dbos/_debouncer.py
CHANGED
@@ -86,6 +86,7 @@ def debouncer_workflow(
|
|
86
86
|
dbos = _get_dbos_instance()
|
87
87
|
|
88
88
|
workflow_inputs: WorkflowInputs = {"args": args, "kwargs": kwargs}
|
89
|
+
|
89
90
|
# Every time the debounced workflow is called, a message is sent to this workflow.
|
90
91
|
# It waits until debounce_period_sec have passed since the last message or until
|
91
92
|
# debounce_timeout_sec has elapsed.
|
@@ -95,7 +96,10 @@ def debouncer_workflow(
|
|
95
96
|
if options["debounce_timeout_sec"]
|
96
97
|
else math.inf
|
97
98
|
)
|
98
|
-
|
99
|
+
|
100
|
+
debounce_deadline_epoch_sec = dbos._sys_db.call_function_as_step(
|
101
|
+
get_debounce_deadline_epoch_sec, "get_debounce_deadline_epoch_sec"
|
102
|
+
)
|
99
103
|
debounce_period_sec = initial_debounce_period_sec
|
100
104
|
while time.time() < debounce_deadline_epoch_sec:
|
101
105
|
time_until_deadline = max(debounce_deadline_epoch_sec - time.time(), 0)
|
dbos/_sys_db.py
CHANGED
@@ -1077,24 +1077,23 @@ class SystemDatabase(ABC):
|
|
1077
1077
|
SystemSchema.operation_outputs.c.child_workflow_id,
|
1078
1078
|
).where(SystemSchema.operation_outputs.c.workflow_uuid == workflow_id)
|
1079
1079
|
).fetchall()
|
1080
|
-
|
1081
|
-
|
1080
|
+
steps = []
|
1081
|
+
for row in rows:
|
1082
|
+
_, output, exception = _serialization.safe_deserialize(
|
1083
|
+
workflow_id,
|
1084
|
+
serialized_input=None,
|
1085
|
+
serialized_output=row[2],
|
1086
|
+
serialized_exception=row[3],
|
1087
|
+
)
|
1088
|
+
step = StepInfo(
|
1082
1089
|
function_id=row[0],
|
1083
1090
|
function_name=row[1],
|
1084
|
-
output=
|
1085
|
-
|
1086
|
-
if row[2] is not None
|
1087
|
-
else row[2]
|
1088
|
-
),
|
1089
|
-
error=(
|
1090
|
-
_serialization.deserialize_exception(row[3])
|
1091
|
-
if row[3] is not None
|
1092
|
-
else row[3]
|
1093
|
-
),
|
1091
|
+
output=output,
|
1092
|
+
error=exception,
|
1094
1093
|
child_workflow_id=row[4],
|
1095
1094
|
)
|
1096
|
-
|
1097
|
-
|
1095
|
+
steps.append(step)
|
1096
|
+
return steps
|
1098
1097
|
|
1099
1098
|
def _record_operation_result_txn(
|
1100
1099
|
self, result: OperationResultInternal, conn: sa.Connection
|
@@ -1,7 +1,7 @@
|
|
1
|
-
dbos-1.
|
2
|
-
dbos-1.
|
3
|
-
dbos-1.
|
4
|
-
dbos-1.
|
1
|
+
dbos-2.1.0a1.dist-info/METADATA,sha256=FlTJTp4G9pw4YqyZJSPtAG8N9yv1Y9-n__pdXUI91KA,14532
|
2
|
+
dbos-2.1.0a1.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
3
|
+
dbos-2.1.0a1.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
4
|
+
dbos-2.1.0a1.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
|
@@ -15,7 +15,7 @@ dbos/_core.py,sha256=13DNN_fpSIs42NquV80XsHV7yKwY_adKP03h_xhXok4,50493
|
|
15
15
|
dbos/_croniter.py,sha256=XHAyUyibs_59sJQfSNWkP7rqQY6_XrlfuuCxk4jYqek,47559
|
16
16
|
dbos/_dbos.py,sha256=lkOnSZrEPkqURBJatBhnslHO0OKgmrS8rqLowEn5Rr0,58441
|
17
17
|
dbos/_dbos_config.py,sha256=4vgPyy4NiojAOiw3BnjWwiwT1_Ju3ZhXqJQOKDXhsE4,25148
|
18
|
-
dbos/_debouncer.py,sha256=
|
18
|
+
dbos/_debouncer.py,sha256=qNjIVmWqTPp64M2cEbLnpgGmlKVdCaAKysD1BPJgWh4,15297
|
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
|
@@ -36,7 +36,7 @@ dbos/_schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
dbos/_schemas/application_database.py,sha256=SypAS9l9EsaBHFn9FR8jmnqt01M74d9AF1AMa4m2hhI,1040
|
37
37
|
dbos/_schemas/system_database.py,sha256=aEkjRQDh9xjdke0d9uFx_20-c9UjQtvuLtHZ24aOypA,5497
|
38
38
|
dbos/_serialization.py,sha256=GLgWLtHpvk7nSHyXukVQLE1ASNA3CJBtfF8w6iflBDw,3590
|
39
|
-
dbos/_sys_db.py,sha256=
|
39
|
+
dbos/_sys_db.py,sha256=73FDMflDedA2-9QFIDQJYOFmkvA0sNLwkiGMq475A6g,84548
|
40
40
|
dbos/_sys_db_postgres.py,sha256=GuyGVyZZD_Wl7LjRSkHnOuZ-hOROlO4Xs2UeDhKq10E,6963
|
41
41
|
dbos/_sys_db_sqlite.py,sha256=ifjKdy-Z9vlVIBf5L6XnSaNjiBdvqPE73asVHim4A5Q,6998
|
42
42
|
dbos/_templates/dbos-db-starter/README.md,sha256=GhxhBj42wjTt1fWEtwNriHbJuKb66Vzu89G4pxNHw2g,930
|
@@ -56,4 +56,4 @@ dbos/cli/migration.py,sha256=zJnDPUBnil5XZXFxc01EbZ0Radw_y8wtDGZExgelAxc,3633
|
|
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.
|
59
|
+
dbos-2.1.0a1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|