dbos 0.25.0a1__py3-none-any.whl → 0.25.0a3__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.
dbos/_db_wizard.py CHANGED
@@ -49,6 +49,7 @@ def db_wizard(config: "ConfigFile") -> "ConfigFile":
49
49
 
50
50
  # 2. If the error is due to password authentication or the configuration is non-default, surface the error and exit.
51
51
  error_str = str(db_connection_error)
52
+ dbos_logger.debug(f"Error connecting to Postgres: {error_str}")
52
53
  if (
53
54
  "password authentication failed" in error_str
54
55
  or "28P01" in error_str
@@ -182,17 +183,12 @@ def _check_db_connectivity(config: "ConfigFile") -> Optional[Exception]:
182
183
  host=config["database"]["hostname"],
183
184
  port=config["database"]["port"],
184
185
  database="postgres",
185
- query={"connect_timeout": "1"},
186
+ query={"connect_timeout": "2"},
186
187
  )
187
188
  postgres_db_engine = create_engine(postgres_db_url)
188
189
  try:
189
190
  with postgres_db_engine.connect() as conn:
190
- val = conn.execute(text("SELECT 1")).scalar()
191
- if val != 1:
192
- dbos_logger.error(
193
- f"Unexpected value returned from database: expected 1, received {val}"
194
- )
195
- return Exception()
191
+ conn.execute(text("SELECT 1")).scalar()
196
192
  except Exception as e:
197
193
  return e
198
194
  finally:
dbos/_dbos_config.py CHANGED
@@ -512,7 +512,8 @@ def overwrite_config(provided_config: ConfigFile) -> ConfigFile:
512
512
  "sys_db_name"
513
513
  ]
514
514
  provided_config["database"]["ssl"] = config_from_file["database"]["ssl"]
515
- provided_config["database"]["ssl_ca"] = config_from_file["database"]["ssl_ca"]
515
+ if "ssl_ca" in config_from_file["database"]:
516
+ provided_config["database"]["ssl_ca"] = config_from_file["database"]["ssl_ca"]
516
517
 
517
518
  # Telemetry config
518
519
  if "telemetry" not in provided_config or provided_config["telemetry"] is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbos
3
- Version: 0.25.0a1
3
+ Version: 0.25.0a3
4
4
  Summary: Ultra-lightweight durable execution in Python
5
5
  Author-Email: "DBOS, Inc." <contact@dbos.dev>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
- dbos-0.25.0a1.dist-info/METADATA,sha256=8wLgVKImx_uC7Fo8ozgT7Y9n0hMy_Ew4KwWy_M3Q8FM,5521
2
- dbos-0.25.0a1.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- dbos-0.25.0a1.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
4
- dbos-0.25.0a1.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
1
+ dbos-0.25.0a3.dist-info/METADATA,sha256=6snDZhl9L6mOGwu_Kfssv4_aQik1ZEB-mPJb_qWCK5Q,5521
2
+ dbos-0.25.0a3.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ dbos-0.25.0a3.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
4
+ dbos-0.25.0a3.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
5
5
  dbos/__init__.py,sha256=uq9LP5uY96kIS9N0yKqlvDwADmtg_Hl30uSUhyuUr-4,754
6
6
  dbos/__main__.py,sha256=P7jAr-7L9XE5mrsQ7i4b-bLr2ap1tCQfhMByLCRWDj0,568
7
7
  dbos/_admin_server.py,sha256=YiVn5lywz2Vg8_juyNHOYl0HVEy48--7b4phwK7r92o,5732
@@ -15,9 +15,9 @@ dbos/_conductor/protocol.py,sha256=MWY3SuIeY6GN2Vg3wQjcxiT0d4zz4ccGzdEkmYYJ6t0,5
15
15
  dbos/_context.py,sha256=Ue5qu3rzLfRmPkz-UUZi9ZS8iXpapRN0NTM4mbA2QmQ,17738
16
16
  dbos/_core.py,sha256=_a_rSkAWNLoHqzQbkqez0mpctkjDs301123ti3wmKHk,41340
17
17
  dbos/_croniter.py,sha256=XHAyUyibs_59sJQfSNWkP7rqQY6_XrlfuuCxk4jYqek,47559
18
- dbos/_db_wizard.py,sha256=YEW2qoy6hfHQv2fZ_4nHiPUeHMFofPpNTolJ1Kvw7AQ,8394
18
+ dbos/_db_wizard.py,sha256=VnMa6OL87Lc-XPDD1RnXp8NjsJE8YgiQLj3wtWAXp-8,8252
19
19
  dbos/_dbos.py,sha256=GMnSMBBsJIZIzuB3SqLHIJWP5dlWkUyTuIaSUuBOOMY,43967
20
- dbos/_dbos_config.py,sha256=rWGy8mB7uLGRgkAybBEz-ogsJQYJpXY41cXNy5eITMs,21513
20
+ dbos/_dbos_config.py,sha256=7Qm3FARP3lTKZS0gSxDHLbpaDCT30GzfyERxfCde4bc,21566
21
21
  dbos/_debug.py,sha256=mmgvLkqlrljMBBow9wk01PPur9kUf2rI_11dTJXY4gw,1822
22
22
  dbos/_error.py,sha256=B6Y9XLS1f6yrawxB2uAEYFMxFwk9BHhdxPNddKco-Fw,5399
23
23
  dbos/_fastapi.py,sha256=ke03vqsSYDnO6XeOtOVFXj0-f-v1MGsOxa9McaROvNc,3616
@@ -65,4 +65,4 @@ dbos/cli/cli.py,sha256=pet2vf4GLlSDfxfQbsplM9uewD6pJK2ZpLgZlwgBU5w,15627
65
65
  dbos/dbos-config.schema.json,sha256=HtF_njVTGHLdzBGZ4OrGQz3qbPPT0Go-iwd1PgFVTNg,5847
66
66
  dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
67
67
  version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
68
- dbos-0.25.0a1.dist-info/RECORD,,
68
+ dbos-0.25.0a3.dist-info/RECORD,,