dbos 0.26.0a24__tar.gz → 0.26.1__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.
- {dbos-0.26.0a24 → dbos-0.26.1}/PKG-INFO +1 -1
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/__init__.py +7 -1
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_dbos_config.py +0 -12
- {dbos-0.26.0a24 → dbos-0.26.1}/pyproject.toml +1 -1
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_async.py +2 -2
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_dbos.py +9 -6
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_queue.py +2 -1
- {dbos-0.26.0a24 → dbos-0.26.1}/LICENSE +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/README.md +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/__main__.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_admin_server.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_app_db.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_classproperty.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_client.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_conductor/conductor.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_conductor/protocol.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_context.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_core.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_croniter.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_dbos.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_debug.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_docker_pg_helper.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_error.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_event_loop.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_fastapi.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_flask.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_kafka.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_kafka_message.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_logger.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/env.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/script.py.mako +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/04ca4f231047_workflow_queues_executor_id.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/50f3227f0b4b_fix_job_queue.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/5c361fc04708_added_system_tables.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/83f3732ae8e7_workflow_timeout.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/a3b18ad34abe_added_triggers.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/d76646551a6b_job_queue_limiter.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/d76646551a6c_workflow_queue.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/eab0cc1d9a14_job_queue.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/f4b9b32ba814_functionname_childid_op_outputs.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_outcome.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_queue.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_recovery.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_registrations.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_request.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_roles.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_scheduler.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_schemas/__init__.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_schemas/application_database.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_schemas/system_database.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_serialization.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_sys_db.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/README.md +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/__package/__init__.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/__package/main.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/__package/schema.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/alembic.ini +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/dbos-config.yaml.dbos +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/migrations/env.py.dbos +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/migrations/script.py.mako +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/migrations/versions/2024_07_31_180642_init.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_templates/dbos-db-starter/start_postgres_docker.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_tracer.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_utils.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/_workflow_commands.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/cli/_github_init.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/cli/_template_init.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/cli/cli.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/dbos-config.schema.json +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/dbos/py.typed +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/__init__.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/atexit_no_ctor.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/atexit_no_launch.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/classdefs.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/client_collateral.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/client_worker.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/conftest.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/dupname_classdefs1.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/dupname_classdefsa.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/more_classdefs.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/queuedworkflow.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_admin_server.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_classdecorators.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_client.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_concurrency.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_config.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_croniter.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_debug.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_docker_secrets.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_failures.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_fastapi.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_fastapi_roles.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_flask.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_kafka.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_outcome.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_package.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_scheduler.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_schema_migration.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_singleton.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_spans.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_sqlalchemy.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_workflow_introspection.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/tests/test_workflow_management.py +0 -0
- {dbos-0.26.0a24 → dbos-0.26.1}/version/__init__.py +0 -0
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
from . import _error as error
|
|
2
2
|
from ._client import DBOSClient, EnqueueOptions
|
|
3
|
-
from ._context import
|
|
3
|
+
from ._context import (
|
|
4
|
+
DBOSContextEnsure,
|
|
5
|
+
DBOSContextSetAuth,
|
|
6
|
+
SetWorkflowID,
|
|
7
|
+
SetWorkflowTimeout,
|
|
8
|
+
)
|
|
4
9
|
from ._dbos import DBOS, DBOSConfiguredInstance, WorkflowHandle
|
|
5
10
|
from ._dbos_config import ConfigFile, DBOSConfig, get_dbos_database_url, load_config
|
|
6
11
|
from ._kafka_message import KafkaMessage
|
|
@@ -19,6 +24,7 @@ __all__ = [
|
|
|
19
24
|
"GetWorkflowsInput",
|
|
20
25
|
"KafkaMessage",
|
|
21
26
|
"SetWorkflowID",
|
|
27
|
+
"SetWorkflowTimeout",
|
|
22
28
|
"WorkflowHandle",
|
|
23
29
|
"WorkflowStatus",
|
|
24
30
|
"WorkflowStatusString",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import inspect
|
|
2
1
|
import json
|
|
3
2
|
import os
|
|
4
3
|
import re
|
|
@@ -311,17 +310,6 @@ def load_config(
|
|
|
311
310
|
|
|
312
311
|
"""
|
|
313
312
|
|
|
314
|
-
# Get the current call stack
|
|
315
|
-
frame_records = inspect.stack()
|
|
316
|
-
called_from_cli = False
|
|
317
|
-
for frame_record in frame_records:
|
|
318
|
-
if "dbos/cli/cli.py" in frame_record.filename:
|
|
319
|
-
called_from_cli = True
|
|
320
|
-
if not called_from_cli and not silent:
|
|
321
|
-
dbos_logger.warning(
|
|
322
|
-
"This function is deprecated and will be removed in a future version. Use `DBOS.config` instead."
|
|
323
|
-
)
|
|
324
|
-
|
|
325
313
|
with open(config_file_path, "r") as file:
|
|
326
314
|
content = file.read()
|
|
327
315
|
substituted_content = _substitute_env_vars(content, silent=silent)
|
|
@@ -7,8 +7,8 @@ import pytest
|
|
|
7
7
|
import sqlalchemy as sa
|
|
8
8
|
|
|
9
9
|
# Public API
|
|
10
|
-
from dbos import DBOS, Queue, SetWorkflowID
|
|
11
|
-
from dbos._context import
|
|
10
|
+
from dbos import DBOS, Queue, SetWorkflowID, SetWorkflowTimeout
|
|
11
|
+
from dbos._context import assert_current_dbos_context
|
|
12
12
|
from dbos._dbos import WorkflowHandle, WorkflowHandleAsync
|
|
13
13
|
from dbos._dbos_config import ConfigFile
|
|
14
14
|
from dbos._error import DBOSException, DBOSWorkflowCancelledError
|
|
@@ -12,14 +12,17 @@ import pytest
|
|
|
12
12
|
import sqlalchemy as sa
|
|
13
13
|
|
|
14
14
|
# Public API
|
|
15
|
-
from dbos import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
from dbos import (
|
|
16
|
+
DBOS,
|
|
17
|
+
ConfigFile,
|
|
18
|
+
SetWorkflowID,
|
|
19
19
|
SetWorkflowTimeout,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
WorkflowHandle,
|
|
21
|
+
WorkflowStatusString,
|
|
22
22
|
)
|
|
23
|
+
|
|
24
|
+
# Private API because this is a test
|
|
25
|
+
from dbos._context import assert_current_dbos_context, get_local_dbos_context
|
|
23
26
|
from dbos._error import (
|
|
24
27
|
DBOSConflictingRegistrationError,
|
|
25
28
|
DBOSMaxStepRetriesExceeded,
|
|
@@ -16,9 +16,10 @@ from dbos import (
|
|
|
16
16
|
DBOSConfiguredInstance,
|
|
17
17
|
Queue,
|
|
18
18
|
SetWorkflowID,
|
|
19
|
+
SetWorkflowTimeout,
|
|
19
20
|
WorkflowHandle,
|
|
20
21
|
)
|
|
21
|
-
from dbos._context import
|
|
22
|
+
from dbos._context import assert_current_dbos_context
|
|
22
23
|
from dbos._schemas.system_database import SystemSchema
|
|
23
24
|
from dbos._sys_db import WorkflowStatusString
|
|
24
25
|
from dbos._utils import GlobalParams
|
|
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.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/04ca4f231047_workflow_queues_executor_id.py
RENAMED
|
File without changes
|
|
File without changes
|
{dbos-0.26.0a24 → dbos-0.26.1}/dbos/_migrations/versions/5c361fc04708_added_system_tables.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
|
|
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
|