dbos 1.9.0a4__py3-none-any.whl → 1.10.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/_dbos.py +11 -0
- dbos/_dbos_config.py +2 -0
- {dbos-1.9.0a4.dist-info → dbos-1.10.0a1.dist-info}/METADATA +1 -1
- {dbos-1.9.0a4.dist-info → dbos-1.10.0a1.dist-info}/RECORD +7 -7
- {dbos-1.9.0a4.dist-info → dbos-1.10.0a1.dist-info}/WHEEL +0 -0
- {dbos-1.9.0a4.dist-info → dbos-1.10.0a1.dist-info}/entry_points.txt +0 -0
- {dbos-1.9.0a4.dist-info → dbos-1.10.0a1.dist-info}/licenses/LICENSE +0 -0
dbos/_dbos.py
CHANGED
|
@@ -324,6 +324,17 @@ class DBOS:
|
|
|
324
324
|
self.conductor_websocket: Optional[ConductorWebsocket] = None
|
|
325
325
|
self._background_event_loop: BackgroundEventLoop = BackgroundEventLoop()
|
|
326
326
|
|
|
327
|
+
# Globally set the application version and executor ID.
|
|
328
|
+
# In DBOS Cloud, instead use the values supplied through environment variables.
|
|
329
|
+
if not os.environ.get("DBOS__CLOUD") == "true":
|
|
330
|
+
if (
|
|
331
|
+
"application_version" in config
|
|
332
|
+
and config["application_version"] is not None
|
|
333
|
+
):
|
|
334
|
+
GlobalParams.app_version = config["application_version"]
|
|
335
|
+
if "executor_id" in config and config["executor_id"] is not None:
|
|
336
|
+
GlobalParams.executor_id = config["executor_id"]
|
|
337
|
+
|
|
327
338
|
init_logger()
|
|
328
339
|
|
|
329
340
|
# Translate user provided config to an internal format
|
dbos/_dbos_config.py
CHANGED
|
@@ -47,6 +47,8 @@ class DBOSConfig(TypedDict, total=False):
|
|
|
47
47
|
admin_port: Optional[int]
|
|
48
48
|
run_admin_server: Optional[bool]
|
|
49
49
|
otlp_attributes: Optional[dict[str, str]]
|
|
50
|
+
application_version: Optional[str]
|
|
51
|
+
executor_id: Optional[str]
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
class RuntimeConfig(TypedDict, total=False):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
dbos-1.
|
|
2
|
-
dbos-1.
|
|
3
|
-
dbos-1.
|
|
4
|
-
dbos-1.
|
|
1
|
+
dbos-1.10.0a1.dist-info/METADATA,sha256=FZUCG3BXE9GcReOOPPf9NlmTIi-wNGNUFoxxGmNCZyI,13268
|
|
2
|
+
dbos-1.10.0a1.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
dbos-1.10.0a1.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-1.10.0a1.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=e8ELhcDWqR3_PNobnNgUvLGh5lzZq0yFSF6dvtzoQRI,16267
|
|
@@ -13,8 +13,8 @@ dbos/_conductor/protocol.py,sha256=q3rgLxINFtWFigdOONc-4gX4vn66UmMlJQD6Kj8LnL4,7
|
|
|
13
13
|
dbos/_context.py,sha256=0vFtLAk3WF5BQYIYNFImDRBppKO2CTKOSy51zQC-Cu8,25723
|
|
14
14
|
dbos/_core.py,sha256=TA-UOSO_BhvM6L6j4__dwesK7x5Y93dk6mV1xx0WZBY,49593
|
|
15
15
|
dbos/_croniter.py,sha256=XHAyUyibs_59sJQfSNWkP7rqQY6_XrlfuuCxk4jYqek,47559
|
|
16
|
-
dbos/_dbos.py,sha256=
|
|
17
|
-
dbos/_dbos_config.py,sha256=
|
|
16
|
+
dbos/_dbos.py,sha256=0CDsUKvqfoX6i2Q74khU1hvJVpfy2tcGpQIDtEtWCAM,51469
|
|
17
|
+
dbos/_dbos_config.py,sha256=er8oF3e9zGlEG9KntX7uBSXrDuVvROtkzVidzXjOwUU,21746
|
|
18
18
|
dbos/_debug.py,sha256=99j2SChWmCPAlZoDmjsJGe77tpU2LEa8E2TtLAnnh7o,1831
|
|
19
19
|
dbos/_docker_pg_helper.py,sha256=tLJXWqZ4S-ExcaPnxg_i6cVxL6ZxrYlZjaGsklY-s2I,6115
|
|
20
20
|
dbos/_error.py,sha256=2_2ve3qN0BLhFWMmd3aD9At54tIMCeh8TqHtVcEEVQo,8705
|
|
@@ -69,4 +69,4 @@ dbos/cli/cli.py,sha256=oU2uvRF90eAydQ9FoQcgi8N_Cojzz8NLn1WE-vrA1p0,22155
|
|
|
69
69
|
dbos/dbos-config.schema.json,sha256=CjaspeYmOkx6Ip_pcxtmfXJTn_YGdSx_0pcPBF7KZmo,6060
|
|
70
70
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
71
71
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
72
|
-
dbos-1.
|
|
72
|
+
dbos-1.10.0a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|