dbos 0.23.0a14__tar.gz → 0.24.0a1__tar.gz
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-0.23.0a14 → dbos-0.24.0a1}/PKG-INFO +1 -1
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_scheduler.py +5 -2
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_sys_db.py +5 -1
- {dbos-0.23.0a14 → dbos-0.24.0a1}/pyproject.toml +1 -1
- {dbos-0.23.0a14 → dbos-0.24.0a1}/LICENSE +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/README.md +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/__init__.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/__main__.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_admin_server.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_app_db.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_classproperty.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_cloudutils/authentication.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_cloudutils/cloudutils.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_cloudutils/databases.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_conductor/conductor.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_conductor/protocol.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_context.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_core.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_croniter.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_db_wizard.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_dbos.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_dbos_config.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_debug.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_error.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_fastapi.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_flask.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_kafka.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_kafka_message.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_logger.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/env.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/script.py.mako +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/04ca4f231047_workflow_queues_executor_id.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/50f3227f0b4b_fix_job_queue.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/5c361fc04708_added_system_tables.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/a3b18ad34abe_added_triggers.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/d76646551a6b_job_queue_limiter.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/d76646551a6c_workflow_queue.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/eab0cc1d9a14_job_queue.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_outcome.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_queue.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_recovery.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_registrations.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_request.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_roles.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_schemas/__init__.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_schemas/application_database.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_schemas/system_database.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_serialization.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/README.md +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/__package/__init__.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/__package/main.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/__package/schema.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/alembic.ini +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/dbos-config.yaml.dbos +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/migrations/env.py.dbos +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/migrations/script.py.mako +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/migrations/versions/2024_07_31_180642_init.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_templates/dbos-db-starter/start_postgres_docker.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_tracer.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_utils.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_workflow_commands.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/cli/_github_init.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/cli/_template_init.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/cli/cli.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/dbos-config.schema.json +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/py.typed +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/__init__.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/atexit_no_ctor.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/atexit_no_launch.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/classdefs.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/conftest.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/more_classdefs.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/queuedworkflow.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_admin_server.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_async.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_classdecorators.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_concurrency.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_config.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_croniter.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_dbos.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_debug.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_failures.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_fastapi.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_fastapi_roles.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_flask.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_kafka.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_outcome.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_package.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_queue.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_scheduler.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_schema_migration.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_singleton.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_spans.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_sqlalchemy.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_workflow_cancel.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/tests/test_workflow_cmds.py +0 -0
- {dbos-0.23.0a14 → dbos-0.24.0a1}/version/__init__.py +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import threading
|
|
2
|
+
import traceback
|
|
2
3
|
from datetime import datetime, timezone
|
|
3
4
|
from typing import TYPE_CHECKING, Callable
|
|
4
5
|
|
|
@@ -33,8 +34,10 @@ def scheduler_loop(
|
|
|
33
34
|
with SetWorkflowID(f"sched-{func.__qualname__}-{nextExecTime.isoformat()}"):
|
|
34
35
|
try:
|
|
35
36
|
scheduler_queue.enqueue(func, nextExecTime, datetime.now(timezone.utc))
|
|
36
|
-
except Exception
|
|
37
|
-
dbos_logger.warning(
|
|
37
|
+
except Exception:
|
|
38
|
+
dbos_logger.warning(
|
|
39
|
+
f"Exception encountered in scheduler thread: {traceback.format_exc()})"
|
|
40
|
+
)
|
|
38
41
|
|
|
39
42
|
|
|
40
43
|
def scheduled(
|
|
@@ -202,7 +202,11 @@ class SystemDatabase:
|
|
|
202
202
|
|
|
203
203
|
# Create a connection pool for the system database
|
|
204
204
|
self.engine = sa.create_engine(
|
|
205
|
-
system_db_url,
|
|
205
|
+
system_db_url,
|
|
206
|
+
pool_size=20,
|
|
207
|
+
max_overflow=5,
|
|
208
|
+
pool_timeout=30,
|
|
209
|
+
connect_args={"connect_timeout": 10},
|
|
206
210
|
)
|
|
207
211
|
|
|
208
212
|
# Run a schema migration for the system database
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/5c361fc04708_added_system_tables.py
RENAMED
|
File without changes
|
|
File without changes
|
{dbos-0.23.0a14 → dbos-0.24.0a1}/dbos/_migrations/versions/d76646551a6b_job_queue_limiter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|