dbos 1.2.0a5__py3-none-any.whl → 1.2.0a6__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/_sys_db.py +10 -7
- {dbos-1.2.0a5.dist-info → dbos-1.2.0a6.dist-info}/METADATA +1 -1
- {dbos-1.2.0a5.dist-info → dbos-1.2.0a6.dist-info}/RECORD +6 -6
- {dbos-1.2.0a5.dist-info → dbos-1.2.0a6.dist-info}/WHEEL +0 -0
- {dbos-1.2.0a5.dist-info → dbos-1.2.0a6.dist-info}/entry_points.txt +0 -0
- {dbos-1.2.0a5.dist-info → dbos-1.2.0a6.dist-info}/licenses/LICENSE +0 -0
dbos/_sys_db.py
CHANGED
@@ -425,6 +425,15 @@ class SystemDatabase:
|
|
425
425
|
wf_status: WorkflowStatuses = status["status"]
|
426
426
|
workflow_deadline_epoch_ms: Optional[int] = status["workflow_deadline_epoch_ms"]
|
427
427
|
|
428
|
+
# Values to update when a row already exists for this workflow
|
429
|
+
update_values: dict[str, Any] = {
|
430
|
+
"recovery_attempts": SystemSchema.workflow_status.c.recovery_attempts + 1,
|
431
|
+
"updated_at": func.extract("epoch", func.now()) * 1000,
|
432
|
+
}
|
433
|
+
# Don't update an existing executor ID when enqueueing a workflow.
|
434
|
+
if wf_status != WorkflowStatusString.ENQUEUED.value:
|
435
|
+
update_values["executor_id"] = status["executor_id"]
|
436
|
+
|
428
437
|
cmd = (
|
429
438
|
pg.insert(SystemSchema.workflow_status)
|
430
439
|
.values(
|
@@ -450,13 +459,7 @@ class SystemDatabase:
|
|
450
459
|
)
|
451
460
|
.on_conflict_do_update(
|
452
461
|
index_elements=["workflow_uuid"],
|
453
|
-
set_=
|
454
|
-
executor_id=status["executor_id"],
|
455
|
-
recovery_attempts=(
|
456
|
-
SystemSchema.workflow_status.c.recovery_attempts + 1
|
457
|
-
),
|
458
|
-
updated_at=func.extract("epoch", func.now()) * 1000,
|
459
|
-
),
|
462
|
+
set_=update_values,
|
460
463
|
)
|
461
464
|
)
|
462
465
|
|
@@ -1,7 +1,7 @@
|
|
1
|
-
dbos-1.2.
|
2
|
-
dbos-1.2.
|
3
|
-
dbos-1.2.
|
4
|
-
dbos-1.2.
|
1
|
+
dbos-1.2.0a6.dist-info/METADATA,sha256=Dhyh2OiUvqrejsl64mGHV0ypo09eg7_xw-n_xz-aV54,13267
|
2
|
+
dbos-1.2.0a6.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
dbos-1.2.0a6.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
4
|
+
dbos-1.2.0a6.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
5
5
|
dbos/__init__.py,sha256=NssPCubaBxdiKarOWa-wViz1hdJSkmBGcpLX_gQ4NeA,891
|
6
6
|
dbos/__main__.py,sha256=G7Exn-MhGrVJVDbgNlpzhfh8WMX_72t3_oJaFT9Lmt8,653
|
7
7
|
dbos/_admin_server.py,sha256=TWXi4drrzKFpKkUmEJpJkQBZxAtOalnhtYicEn2nDK0,10618
|
@@ -47,7 +47,7 @@ dbos/_schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
dbos/_schemas/application_database.py,sha256=SypAS9l9EsaBHFn9FR8jmnqt01M74d9AF1AMa4m2hhI,1040
|
48
48
|
dbos/_schemas/system_database.py,sha256=3Z0L72bOgHnusK1hBaETWU9RfiLBP0QnS-fdu41i0yY,5835
|
49
49
|
dbos/_serialization.py,sha256=bWuwhXSQcGmiazvhJHA5gwhrRWxtmFmcCFQSDJnqqkU,3666
|
50
|
-
dbos/_sys_db.py,sha256=
|
50
|
+
dbos/_sys_db.py,sha256=dNb2xeidel6-YEApxFCN0TTJZNpYr6Wc8LdFvX3pEb4,85730
|
51
51
|
dbos/_templates/dbos-db-starter/README.md,sha256=GhxhBj42wjTt1fWEtwNriHbJuKb66Vzu89G4pxNHw2g,930
|
52
52
|
dbos/_templates/dbos-db-starter/__package/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
53
53
|
dbos/_templates/dbos-db-starter/__package/main.py.dbos,sha256=aQnBPSSQpkB8ERfhf7gB7P9tsU6OPKhZscfeh0yiaD8,2702
|
@@ -67,4 +67,4 @@ dbos/cli/cli.py,sha256=HinoCGrAUTiSeq7AAoCFfhdiE0uDw7vLMuDMN1_YTLI,20705
|
|
67
67
|
dbos/dbos-config.schema.json,sha256=CjaspeYmOkx6Ip_pcxtmfXJTn_YGdSx_0pcPBF7KZmo,6060
|
68
68
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
69
69
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
70
|
-
dbos-1.2.
|
70
|
+
dbos-1.2.0a6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|