dbos 0.27.0a6__tar.gz → 0.27.0a7__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.27.0a6 → dbos-0.27.0a7}/PKG-INFO +1 -1
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/__init__.py +7 -1
- {dbos-0.27.0a6 → dbos-0.27.0a7}/pyproject.toml +1 -1
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_async.py +1 -1
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_dbos.py +9 -6
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_queue.py +2 -1
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_spans.py +2 -2
- {dbos-0.27.0a6 → dbos-0.27.0a7}/LICENSE +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/README.md +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/__main__.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_admin_server.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_app_db.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_classproperty.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_client.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_conductor/conductor.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_conductor/protocol.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_context.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_core.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_croniter.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_dbos.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_dbos_config.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_debug.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_docker_pg_helper.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_error.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_event_loop.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_fastapi.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_flask.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_kafka.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_kafka_message.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_logger.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/env.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/script.py.mako +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/04ca4f231047_workflow_queues_executor_id.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/50f3227f0b4b_fix_job_queue.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/5c361fc04708_added_system_tables.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/83f3732ae8e7_workflow_timeout.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/a3b18ad34abe_added_triggers.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/d76646551a6b_job_queue_limiter.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/d76646551a6c_workflow_queue.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/eab0cc1d9a14_job_queue.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_migrations/versions/f4b9b32ba814_functionname_childid_op_outputs.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_outcome.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_queue.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_recovery.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_registrations.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_request.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_roles.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_scheduler.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_schemas/__init__.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_schemas/application_database.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_schemas/system_database.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_serialization.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_sys_db.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/README.md +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/__package/__init__.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/__package/main.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/__package/schema.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/alembic.ini +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/dbos-config.yaml.dbos +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/migrations/env.py.dbos +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/migrations/script.py.mako +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/migrations/versions/2024_07_31_180642_init.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_templates/dbos-db-starter/start_postgres_docker.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_tracer.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_utils.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/_workflow_commands.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/cli/_github_init.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/cli/_template_init.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/cli/cli.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/dbos-config.schema.json +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/dbos/py.typed +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/__init__.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/atexit_no_ctor.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/atexit_no_launch.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/classdefs.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/client_collateral.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/client_worker.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/conftest.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/dupname_classdefs1.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/dupname_classdefsa.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/more_classdefs.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/queuedworkflow.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_admin_server.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_classdecorators.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_client.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_concurrency.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_config.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_croniter.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_debug.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_docker_secrets.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_failures.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_fastapi.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_fastapi_roles.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_flask.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_kafka.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_outcome.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_package.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_scheduler.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_schema_migration.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_singleton.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_sqlalchemy.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_workflow_introspection.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/tests/test_workflow_management.py +0 -0
- {dbos-0.27.0a6 → dbos-0.27.0a7}/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, WorkflowHandleAsync
|
|
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
|
"WorkflowHandleAsync",
|
|
24
30
|
"WorkflowStatus",
|
|
@@ -7,7 +7,7 @@ import pytest
|
|
|
7
7
|
import sqlalchemy as sa
|
|
8
8
|
|
|
9
9
|
# Public API
|
|
10
|
-
from dbos import DBOS, Queue, SetWorkflowID, WorkflowHandleAsync
|
|
10
|
+
from dbos import DBOS, Queue, SetWorkflowID, SetWorkflowTimeout, WorkflowHandleAsync
|
|
11
11
|
from dbos._context import SetWorkflowTimeout, assert_current_dbos_context
|
|
12
12
|
from dbos._dbos import WorkflowHandle
|
|
13
13
|
from dbos._dbos_config import ConfigFile
|
|
@@ -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
|
|
@@ -46,7 +46,7 @@ def test_spans(dbos: DBOS) -> None:
|
|
|
46
46
|
assert span.context is not None
|
|
47
47
|
|
|
48
48
|
assert spans[0].name == test_step.__name__
|
|
49
|
-
assert spans[1].name ==
|
|
49
|
+
assert spans[1].name == "a new span"
|
|
50
50
|
assert spans[2].name == test_workflow.__name__
|
|
51
51
|
assert spans[3].name == test_step.__name__
|
|
52
52
|
|
|
@@ -91,7 +91,7 @@ async def test_spans_async(dbos: DBOS) -> None:
|
|
|
91
91
|
assert span.context is not None
|
|
92
92
|
|
|
93
93
|
assert spans[0].name == test_step.__name__
|
|
94
|
-
assert spans[1].name ==
|
|
94
|
+
assert spans[1].name == "a new span"
|
|
95
95
|
assert spans[2].name == test_workflow.__name__
|
|
96
96
|
assert spans[3].name == test_step.__name__
|
|
97
97
|
|
|
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.27.0a6 → dbos-0.27.0a7}/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
|