dbos 0.13.0a1__py3-none-any.whl → 0.14.0a2__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/_admin_sever.py +0 -1
- dbos/_dbos_config.py +2 -2
- dbos/cli.py +3 -1
- {dbos-0.13.0a1.dist-info → dbos-0.14.0a2.dist-info}/METADATA +1 -1
- {dbos-0.13.0a1.dist-info → dbos-0.14.0a2.dist-info}/RECORD +8 -8
- {dbos-0.13.0a1.dist-info → dbos-0.14.0a2.dist-info}/WHEEL +0 -0
- {dbos-0.13.0a1.dist-info → dbos-0.14.0a2.dist-info}/entry_points.txt +0 -0
- {dbos-0.13.0a1.dist-info → dbos-0.14.0a2.dist-info}/licenses/LICENSE +0 -0
dbos/_admin_sever.py
CHANGED
|
@@ -53,7 +53,6 @@ class AdminRequestHandler(BaseHTTPRequestHandler):
|
|
|
53
53
|
self._end_headers()
|
|
54
54
|
self.wfile.write("healthy".encode("utf-8"))
|
|
55
55
|
elif self.path == _deactivate_path:
|
|
56
|
-
dbos_logger.info("Deactivating DBOS")
|
|
57
56
|
# Stop all scheduled workflows, queues, and kafka loops
|
|
58
57
|
for event in self.dbos.stop_events:
|
|
59
58
|
event.set()
|
dbos/_dbos_config.py
CHANGED
|
@@ -169,7 +169,7 @@ def load_config(config_file_path: str = "dbos-config.yaml") -> ConfigFile:
|
|
|
169
169
|
|
|
170
170
|
if not _is_valid_app_name(data["name"]):
|
|
171
171
|
raise DBOSInitializationError(
|
|
172
|
-
f'Invalid app name {data["name"]}. App names must be between 3 and 30 characters and contain only
|
|
172
|
+
f'Invalid app name {data["name"]}. App names must be between 3 and 30 characters long and contain only lowercase letters, numbers, dashes, and underscores.'
|
|
173
173
|
)
|
|
174
174
|
|
|
175
175
|
if "app_db_name" not in data["database"]:
|
|
@@ -198,4 +198,4 @@ def _app_name_to_db_name(app_name: str) -> str:
|
|
|
198
198
|
def _set_env_vars(config: ConfigFile) -> None:
|
|
199
199
|
for env, value in config.get("env", {}).items():
|
|
200
200
|
if value is not None:
|
|
201
|
-
os.environ[env] = value
|
|
201
|
+
os.environ[env] = str(value)
|
dbos/cli.py
CHANGED
|
@@ -187,7 +187,9 @@ def init(
|
|
|
187
187
|
)
|
|
188
188
|
|
|
189
189
|
if not _is_valid_app_name(project_name):
|
|
190
|
-
raise Exception(
|
|
190
|
+
raise Exception(
|
|
191
|
+
f"{project_name} is an invalid DBOS app name. App names must be between 3 and 30 characters long and contain only lowercase letters, numbers, dashes, and underscores."
|
|
192
|
+
)
|
|
191
193
|
|
|
192
194
|
templates_dir = _get_templates_directory()
|
|
193
195
|
templates = [x.name for x in os.scandir(templates_dir) if x.is_dir()]
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
dbos-0.
|
|
2
|
-
dbos-0.
|
|
3
|
-
dbos-0.
|
|
4
|
-
dbos-0.
|
|
1
|
+
dbos-0.14.0a2.dist-info/METADATA,sha256=pRN4cQVki2JkNvyQlZc33Fi570IAuGuJHNfbhBeTOTc,4988
|
|
2
|
+
dbos-0.14.0a2.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
dbos-0.14.0a2.dist-info/entry_points.txt,sha256=z6GcVANQV7Uw_82H9Ob2axJX6V3imftyZsljdh-M1HU,54
|
|
4
|
+
dbos-0.14.0a2.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=CxRHBHEthPL4PZoLbZhp3rdm44-KkRTT2-7DkK9d4QQ,724
|
|
6
|
-
dbos/_admin_sever.py,sha256=
|
|
6
|
+
dbos/_admin_sever.py,sha256=DOgzVp9kmwiebQqmJB1LcrZnGTxSMbZiGXdenc1wZDg,3163
|
|
7
7
|
dbos/_app_db.py,sha256=_tv2vmPjjiaikwgxH3mqxgJ4nUUcG2-0uMXKWCqVu1c,5509
|
|
8
8
|
dbos/_classproperty.py,sha256=f0X-_BySzn3yFDRKB2JpCbLYQ9tLwt1XftfshvY7CBs,626
|
|
9
9
|
dbos/_context.py,sha256=SJZTOB-saxCNNGT2LLop9LasqR-X2MQLTay3rjXRUCw,17748
|
|
10
10
|
dbos/_core.py,sha256=HUteo2HP9C4UvB-y41xwUphLZyYRTdb0sW5XqZ6QPAY,31167
|
|
11
11
|
dbos/_croniter.py,sha256=hbhgfsHBqclUS8VeLnJ9PSE9Z54z6mi4nnrr1aUXn0k,47561
|
|
12
12
|
dbos/_dbos.py,sha256=Or5z_PLwuUOz2wcI4PrBwAQYv7EarGpRU44WbvSU9pw,30986
|
|
13
|
-
dbos/_dbos_config.py,sha256=
|
|
13
|
+
dbos/_dbos_config.py,sha256=6G-S-43XMtkB06WnQ_8dHX-Yf64NdDPLbOkS0qztORk,6375
|
|
14
14
|
dbos/_error.py,sha256=UETk8CoZL-TO2Utn1-E7OSWelhShWmKM-fOlODMR9PE,3893
|
|
15
15
|
dbos/_fastapi.py,sha256=iyefCZq-ZDKRUjN_rgYQmFmyvWf4gPrSlC6CLbfq4a8,3419
|
|
16
16
|
dbos/_flask.py,sha256=z1cijbTi5Dpq6kqikPCx1LcR2YHHv2oc41NehOWjw74,2431
|
|
@@ -47,8 +47,8 @@ dbos/_templates/hello/migrations/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1u
|
|
|
47
47
|
dbos/_templates/hello/migrations/versions/2024_07_31_180642_init.py,sha256=U5thFWGqNN4QLrNXT7wUUqftIFDNE5eSdqD8JNW1mec,942
|
|
48
48
|
dbos/_templates/hello/start_postgres_docker.py,sha256=lQVLlYO5YkhGPEgPqwGc7Y8uDKse9HsWv5fynJEFJHM,1681
|
|
49
49
|
dbos/_tracer.py,sha256=rvBY1RQU6DO7rL7EnaJJxGcmd4tP_PpGqUEE6imZnhY,2518
|
|
50
|
-
dbos/cli.py,sha256=
|
|
50
|
+
dbos/cli.py,sha256=HCK9Pe2lTelTEG1cvKnxalBp0iR2IqBWLOuwRf_Ey1c,8456
|
|
51
51
|
dbos/dbos-config.schema.json,sha256=tgtiirOTEdIRI27eI75UAER9sAV84CDnv5lRPt0qiuQ,5672
|
|
52
52
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
53
53
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
54
|
-
dbos-0.
|
|
54
|
+
dbos-0.14.0a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|