dbos 2.3.0a5__tar.gz → 2.4.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-2.3.0a5 → dbos-2.4.0a1}/PKG-INFO +1 -1
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_migration.py +17 -2
- {dbos-2.3.0a5 → dbos-2.4.0a1}/pyproject.toml +1 -1
- {dbos-2.3.0a5 → dbos-2.4.0a1}/LICENSE +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/README.md +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/__init__.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/__main__.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_admin_server.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_app_db.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_classproperty.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_client.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_conductor/conductor.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_conductor/protocol.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_context.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_core.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_croniter.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_dbos.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_dbos_config.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_debouncer.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_debug.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_docker_pg_helper.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_error.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_event_loop.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_fastapi.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_flask.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_kafka.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_kafka_message.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_logger.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_outcome.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_queue.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_recovery.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_registrations.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_roles.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_scheduler.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_schemas/__init__.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_schemas/application_database.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_schemas/system_database.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_serialization.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_sys_db.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_sys_db_postgres.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_sys_db_sqlite.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/README.md +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/__package/__init__.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/__package/main.py.dbos +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/__package/schema.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/dbos-config.yaml.dbos +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/migrations/create_table.py.dbos +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/start_postgres_docker.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_tracer.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_utils.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_workflow_commands.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/cli/_github_init.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/cli/_template_init.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/cli/cli.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/cli/migration.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/dbos-config.schema.json +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/py.typed +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/__init__.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/atexit_no_ctor.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/atexit_no_launch.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/classdefs.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/client_collateral.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/client_worker.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/conftest.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/dupname_classdefs1.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/dupname_classdefsa.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/more_classdefs.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/queuedworkflow.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/script_without_fastapi.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_admin_server.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_async.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_async_workflow_management.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_classdecorators.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_cli.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_client.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_concurrency.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_config.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_croniter.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_dbos.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_debouncer.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_debug.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_docker_secrets.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_failures.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_fastapi.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_fastapi_roles.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_flask.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_kafka.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_outcome.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_package.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_queue.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_scheduler.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_schema_migration.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_singleton.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_spans.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_sqlalchemy.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_streaming.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_workflow_introspection.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/tests/test_workflow_management.py +0 -0
- {dbos-2.3.0a5 → dbos-2.4.0a1}/version/__init__.py +0 -0
|
@@ -209,8 +209,18 @@ ALTER TABLE \"{schema}\".workflow_status ADD COLUMN queue_partition_key TEXT;
|
|
|
209
209
|
"""
|
|
210
210
|
|
|
211
211
|
|
|
212
|
+
def get_dbos_migration_three(schema: str) -> str:
|
|
213
|
+
return f"""
|
|
214
|
+
create index "idx_workflow_status_queue_status_started" on \"{schema}\"."workflow_status" ("queue_name", "status", "started_at_epoch_ms")
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
|
|
212
218
|
def get_dbos_migrations(schema: str) -> list[str]:
|
|
213
|
-
return [
|
|
219
|
+
return [
|
|
220
|
+
get_dbos_migration_one(schema),
|
|
221
|
+
get_dbos_migration_two(schema),
|
|
222
|
+
get_dbos_migration_three(schema),
|
|
223
|
+
]
|
|
214
224
|
|
|
215
225
|
|
|
216
226
|
def get_sqlite_timestamp_expr() -> str:
|
|
@@ -303,4 +313,9 @@ sqlite_migration_two = """
|
|
|
303
313
|
ALTER TABLE workflow_status ADD COLUMN queue_partition_key TEXT;
|
|
304
314
|
"""
|
|
305
315
|
|
|
306
|
-
|
|
316
|
+
sqlite_migration_three = """
|
|
317
|
+
CREATE INDEX "idx_workflow_status_queue_status_started"
|
|
318
|
+
ON "workflow_status" ("queue_name", "status", "started_at_epoch_ms")
|
|
319
|
+
"""
|
|
320
|
+
|
|
321
|
+
sqlite_migrations = [sqlite_migration_one, sqlite_migration_two, sqlite_migration_three]
|
|
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
|
{dbos-2.3.0a5 → dbos-2.4.0a1}/dbos/_templates/dbos-db-starter/migrations/create_table.py.dbos
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
|