dbos 0.26.0a23__py3-none-any.whl → 0.26.0a25__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 -5
- dbos/_dbos_config.py +19 -10
- dbos/dbos-config.schema.json +9 -9
- {dbos-0.26.0a23.dist-info → dbos-0.26.0a25.dist-info}/METADATA +1 -1
- {dbos-0.26.0a23.dist-info → dbos-0.26.0a25.dist-info}/RECORD +8 -8
- {dbos-0.26.0a23.dist-info → dbos-0.26.0a25.dist-info}/WHEEL +0 -0
- {dbos-0.26.0a23.dist-info → dbos-0.26.0a25.dist-info}/entry_points.txt +0 -0
- {dbos-0.26.0a23.dist-info → dbos-0.26.0a25.dist-info}/licenses/LICENSE +0 -0
dbos/_dbos.py
CHANGED
|
@@ -33,11 +33,7 @@ from opentelemetry.trace import Span
|
|
|
33
33
|
from dbos._conductor.conductor import ConductorWebsocket
|
|
34
34
|
from dbos._sys_db import WorkflowStatus
|
|
35
35
|
from dbos._utils import INTERNAL_QUEUE_NAME, GlobalParams
|
|
36
|
-
from dbos._workflow_commands import
|
|
37
|
-
fork_workflow,
|
|
38
|
-
list_queued_workflows,
|
|
39
|
-
list_workflows,
|
|
40
|
-
)
|
|
36
|
+
from dbos._workflow_commands import fork_workflow, list_queued_workflows, list_workflows
|
|
41
37
|
|
|
42
38
|
from ._classproperty import classproperty
|
|
43
39
|
from ._core import (
|
|
@@ -351,6 +347,9 @@ class DBOS:
|
|
|
351
347
|
# If no config is provided, load it from dbos-config.yaml
|
|
352
348
|
unvalidated_config = load_config(run_process_config=False)
|
|
353
349
|
elif is_dbos_configfile(config):
|
|
350
|
+
dbos_logger.warning(
|
|
351
|
+
"ConfigFile config strutcture detected. This will be deprecated in favor of DBOSConfig in an upcoming release."
|
|
352
|
+
)
|
|
354
353
|
unvalidated_config = cast(ConfigFile, config)
|
|
355
354
|
if os.environ.get("DBOS__CLOUD") == "true":
|
|
356
355
|
unvalidated_config = overwrite_config(unvalidated_config)
|
dbos/_dbos_config.py
CHANGED
|
@@ -58,19 +58,28 @@ class RuntimeConfig(TypedDict, total=False):
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
class DatabaseConfig(TypedDict, total=False):
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
"""
|
|
62
|
+
Internal data structure containing the DBOS database configuration.
|
|
63
|
+
Attributes:
|
|
64
|
+
app_db_pool_size (int): Application database pool size
|
|
65
|
+
sys_db_name (str): System database name
|
|
66
|
+
sys_db_pool_size (int): System database pool size
|
|
67
|
+
migrate (List[str]): Migration commands to run on startup
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
hostname: str # Will be removed in a future version
|
|
71
|
+
port: int # Will be removed in a future version
|
|
72
|
+
username: str # Will be removed in a future version
|
|
73
|
+
password: str # Will be removed in a future version
|
|
74
|
+
connectionTimeoutMillis: Optional[int] # Will be removed in a future version
|
|
75
|
+
app_db_name: str # Will be removed in a future version
|
|
67
76
|
app_db_pool_size: Optional[int]
|
|
68
77
|
sys_db_name: Optional[str]
|
|
69
78
|
sys_db_pool_size: Optional[int]
|
|
70
|
-
ssl: Optional[bool]
|
|
71
|
-
ssl_ca: Optional[str]
|
|
79
|
+
ssl: Optional[bool] # Will be removed in a future version
|
|
80
|
+
ssl_ca: Optional[str] # Will be removed in a future version
|
|
72
81
|
migrate: Optional[List[str]]
|
|
73
|
-
rollback: Optional[List[str]]
|
|
82
|
+
rollback: Optional[List[str]] # Will be removed in a future version
|
|
74
83
|
|
|
75
84
|
|
|
76
85
|
def parse_database_url_to_dbconfig(database_url: str) -> DatabaseConfig:
|
|
@@ -117,7 +126,7 @@ class ConfigFile(TypedDict, total=False):
|
|
|
117
126
|
Attributes:
|
|
118
127
|
name (str): Application name
|
|
119
128
|
runtimeConfig (RuntimeConfig): Configuration for request serving
|
|
120
|
-
database (DatabaseConfig):
|
|
129
|
+
database (DatabaseConfig): Configure pool sizes, migrate commands
|
|
121
130
|
database_url (str): Database connection string
|
|
122
131
|
telemetry (TelemetryConfig): Configuration for tracing / logging
|
|
123
132
|
env (Dict[str,str]): Environment varialbes
|
dbos/dbos-config.schema.json
CHANGED
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"properties": {
|
|
26
26
|
"hostname": {
|
|
27
27
|
"type": ["string", "null"],
|
|
28
|
-
"description": "The hostname or IP address of the application database",
|
|
28
|
+
"description": "The hostname or IP address of the application database. DEPRECATED: Use database_url instead",
|
|
29
29
|
"deprecated": true
|
|
30
30
|
},
|
|
31
31
|
"port": {
|
|
32
32
|
"type": ["number", "null"],
|
|
33
|
-
"description": "The port number of the application database",
|
|
33
|
+
"description": "The port number of the application database. DEPRECATED: Use database_url instead",
|
|
34
34
|
"deprecated": true
|
|
35
35
|
},
|
|
36
36
|
"username": {
|
|
37
37
|
"type": ["string", "null"],
|
|
38
|
-
"description": "The username to use when connecting to the application database",
|
|
38
|
+
"description": "The username to use when connecting to the application database. DEPRECATED: Use database_url instead",
|
|
39
39
|
"not": {
|
|
40
40
|
"enum": ["dbos"]
|
|
41
41
|
},
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"password": {
|
|
45
45
|
"type": ["string", "null"],
|
|
46
|
-
"description": "The password to use when connecting to the application database. Developers are strongly encouraged to use environment variable substitution (${VAR_NAME}) or Docker secrets (${DOCKER_SECRET:SECRET_NAME}) to avoid storing secrets in source.",
|
|
46
|
+
"description": "The password to use when connecting to the application database. Developers are strongly encouraged to use environment variable substitution (${VAR_NAME}) or Docker secrets (${DOCKER_SECRET:SECRET_NAME}) to avoid storing secrets in source. DEPRECATED: Use database_url instead",
|
|
47
47
|
"deprecated": true
|
|
48
48
|
},
|
|
49
49
|
"connectionTimeoutMillis": {
|
|
50
50
|
"type": ["number", "null"],
|
|
51
|
-
"description": "The number of milliseconds the system waits before timing out when connecting to the application database",
|
|
51
|
+
"description": "The number of milliseconds the system waits before timing out when connecting to the application database. DEPRECATED: Use database_url instead",
|
|
52
52
|
"deprecated": true
|
|
53
53
|
},
|
|
54
54
|
"app_db_name": {
|
|
55
55
|
"type": ["string", "null"],
|
|
56
|
-
"description": "The name of the application database",
|
|
56
|
+
"description": "The name of the application database. DEPRECATED: Use database_url instead",
|
|
57
57
|
"deprecated": true
|
|
58
58
|
},
|
|
59
59
|
"sys_db_name": {
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
},
|
|
63
63
|
"ssl": {
|
|
64
64
|
"type": ["boolean", "null"],
|
|
65
|
-
"description": "Use SSL/TLS to securely connect to the database (default: true)",
|
|
65
|
+
"description": "Use SSL/TLS to securely connect to the database (default: true). DEPRECATED: Use database_url instead",
|
|
66
66
|
"deprecated": true
|
|
67
67
|
},
|
|
68
68
|
"ssl_ca": {
|
|
69
69
|
"type": ["string", "null"],
|
|
70
|
-
"description": "If using SSL/TLS to securely connect to a database, path to an SSL root certificate file",
|
|
70
|
+
"description": "If using SSL/TLS to securely connect to a database, path to an SSL root certificate file. DEPRECATED: Use database_url instead",
|
|
71
71
|
"deprecated": true
|
|
72
72
|
},
|
|
73
73
|
"app_db_client": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"rollback": {
|
|
88
88
|
"type": "array",
|
|
89
|
-
"description": "Specify a list of user DB rollback commands to run",
|
|
89
|
+
"description": "Specify a list of user DB rollback commands to run. DEPRECATED",
|
|
90
90
|
"deprecated": true
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
dbos-0.26.
|
|
2
|
-
dbos-0.26.
|
|
3
|
-
dbos-0.26.
|
|
4
|
-
dbos-0.26.
|
|
1
|
+
dbos-0.26.0a25.dist-info/METADATA,sha256=y73owgsrh99hU87_NM7oNpnqeDqdrOoO3xvr-83yn3I,5554
|
|
2
|
+
dbos-0.26.0a25.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
3
|
+
dbos-0.26.0a25.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-0.26.0a25.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=VoGS7H9GVtNAnD2S4zseIEioS1dNIJXRovQ4oHlg8og,842
|
|
6
6
|
dbos/__main__.py,sha256=G7Exn-MhGrVJVDbgNlpzhfh8WMX_72t3_oJaFT9Lmt8,653
|
|
7
7
|
dbos/_admin_server.py,sha256=RrbABfR1D3p9c_QLrCSrgFuYce6FKi0fjMRIYLjO_Y8,9038
|
|
@@ -13,8 +13,8 @@ dbos/_conductor/protocol.py,sha256=zEKIuOQdIaSduNqfZKpo8PSD9_1oNpKIPnBNCu3RUyE,6
|
|
|
13
13
|
dbos/_context.py,sha256=aHzJxO7LLAz9w3G2dkZnOcFW_GG-Yaxd02AaoLu4Et8,21861
|
|
14
14
|
dbos/_core.py,sha256=ylTVSv02h2M5SmDgYEJAZmNiKX35zPq0z-9WA-f4byY,47900
|
|
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=zE-4CcTQo8ICz-6Ng776IUKdur4qOt3bb810fUAhQc0,47343
|
|
17
|
+
dbos/_dbos_config.py,sha256=Q_YH1HSWzCzzCX7m6z3EjTp_YIjtFbohil6qmcmNARI,21311
|
|
18
18
|
dbos/_debug.py,sha256=MNlQVZ6TscGCRQeEEL0VE8Uignvr6dPeDDDefS3xgIE,1823
|
|
19
19
|
dbos/_docker_pg_helper.py,sha256=NmcgqmR5rQA_4igfeqh8ugNT2z3YmoOvuep_MEtxTiY,5854
|
|
20
20
|
dbos/_error.py,sha256=9ITvFsN_Udpx0xXtYQHXXXb6PjPr3TmMondGmprV-L0,7003
|
|
@@ -63,7 +63,7 @@ dbos/_workflow_commands.py,sha256=7wyxTfIyh2IVIqlkaTr8CMBq8yxWP3Hhddyv1YJY8zE,35
|
|
|
63
63
|
dbos/cli/_github_init.py,sha256=Y_bDF9gfO2jB1id4FV5h1oIxEJRWyqVjhb7bNEa5nQ0,3224
|
|
64
64
|
dbos/cli/_template_init.py,sha256=-WW3kbq0W_Tq4WbMqb1UGJG3xvJb3woEY5VspG95Srk,2857
|
|
65
65
|
dbos/cli/cli.py,sha256=1qCTs__A9LOEfU44XZ6TufwmRwe68ZEwbWEPli3vnVM,17873
|
|
66
|
-
dbos/dbos-config.schema.json,sha256=
|
|
66
|
+
dbos/dbos-config.schema.json,sha256=8KcwJb_sQc4-6tQG2TLmjE_nratfrQa0qVLl9XPsvWE,6367
|
|
67
67
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
68
68
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
69
|
-
dbos-0.26.
|
|
69
|
+
dbos-0.26.0a25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|