Skip to content

Commit f16399a

Browse files
committed
update
1 parent 2fa0168 commit f16399a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

dbos/_dbos.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,10 @@ async def list_workflow_steps_async(cls, workflow_id: str) -> List[StepInfo]:
12961296
def application_version(cls) -> str:
12971297
return GlobalParams.app_version
12981298

1299+
@classproperty
1300+
def executor_id(cls) -> str:
1301+
return GlobalParams.executor_id
1302+
12991303
@classproperty
13001304
def logger(cls) -> Logger:
13011305
"""Return the DBOS `Logger` for the current context."""

tests/test_dbos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ def test_workflow() -> str:
15041504

15051505
DBOS.launch()
15061506
assert DBOS.application_version == app_version
1507-
assert GlobalParams.executor_id == executor_id
1507+
assert GlobalParams.executor_id == executor_id == DBOS.executor_id
15081508
wfid = test_workflow()
15091509
handle: WorkflowHandle[str] = DBOS.retrieve_workflow(wfid)
15101510
assert handle.get_status().app_version == app_version

0 commit comments

Comments
 (0)