dbos 1.6.0a4__tar.gz → 1.6.0a5__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-1.6.0a4 → dbos-1.6.0a5}/PKG-INFO +1 -1
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_context.py +5 -11
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_core.py +0 -5
- {dbos-1.6.0a4 → dbos-1.6.0a5}/pyproject.toml +1 -1
- {dbos-1.6.0a4 → dbos-1.6.0a5}/LICENSE +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/README.md +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/__init__.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/__main__.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_admin_server.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_app_db.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_classproperty.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_client.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_conductor/conductor.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_conductor/protocol.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_croniter.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_dbos.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_dbos_config.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_debug.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_docker_pg_helper.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_error.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_event_loop.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_fastapi.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_flask.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_kafka.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_kafka_message.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_logger.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/env.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/script.py.mako +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/04ca4f231047_workflow_queues_executor_id.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/27ac6900c6ad_add_queue_dedup.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/50f3227f0b4b_fix_job_queue.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/5c361fc04708_added_system_tables.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/66478e1b95e5_consolidate_queues.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/83f3732ae8e7_workflow_timeout.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/933e86bdac6a_add_queue_priority.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/a3b18ad34abe_added_triggers.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/d76646551a6b_job_queue_limiter.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/d76646551a6c_workflow_queue.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/d994145b47b6_consolidate_inputs.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/eab0cc1d9a14_job_queue.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/f4b9b32ba814_functionname_childid_op_outputs.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_outcome.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_queue.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_recovery.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_registrations.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_roles.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_scheduler.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_schemas/__init__.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_schemas/application_database.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_schemas/system_database.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_serialization.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_sys_db.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/README.md +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/__package/__init__.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/__package/main.py.dbos +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/__package/schema.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/alembic.ini +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/dbos-config.yaml.dbos +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/migrations/env.py.dbos +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/migrations/script.py.mako +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/migrations/versions/2024_07_31_180642_init.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_templates/dbos-db-starter/start_postgres_docker.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_tracer.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_utils.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/_workflow_commands.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/cli/_github_init.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/cli/_template_init.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/cli/cli.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/dbos-config.schema.json +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/dbos/py.typed +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/__init__.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/atexit_no_ctor.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/atexit_no_launch.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/classdefs.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/client_collateral.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/client_worker.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/conftest.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/dupname_classdefs1.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/dupname_classdefsa.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/more_classdefs.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/queuedworkflow.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_admin_server.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_async.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_classdecorators.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_cli.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_client.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_concurrency.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_config.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_croniter.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_dbos.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_debug.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_docker_secrets.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_failures.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_fastapi.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_fastapi_roles.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_flask.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_kafka.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_outcome.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_package.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_queue.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_scheduler.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_schema_migration.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_singleton.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_spans.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_sqlalchemy.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_workflow_introspection.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/tests/test_workflow_management.py +0 -0
- {dbos-1.6.0a4 → dbos-1.6.0a5}/version/__init__.py +0 -0
@@ -140,23 +140,18 @@ class DBOSContext:
|
|
140
140
|
self,
|
141
141
|
wfid: Optional[str],
|
142
142
|
attributes: TracedAttributes,
|
143
|
-
is_temp_workflow: bool = False,
|
144
143
|
) -> None:
|
145
144
|
if wfid is None or len(wfid) == 0:
|
146
145
|
wfid = self.assign_workflow_id()
|
147
146
|
self.id_assigned_for_next_workflow = ""
|
148
147
|
self.workflow_id = wfid
|
149
148
|
self.function_id = 0
|
150
|
-
|
151
|
-
self._start_span(attributes)
|
149
|
+
self._start_span(attributes)
|
152
150
|
|
153
|
-
def end_workflow(
|
154
|
-
self, exc_value: Optional[BaseException], is_temp_workflow: bool = False
|
155
|
-
) -> None:
|
151
|
+
def end_workflow(self, exc_value: Optional[BaseException]) -> None:
|
156
152
|
self.workflow_id = ""
|
157
153
|
self.function_id = -1
|
158
|
-
|
159
|
-
self._end_span(exc_value)
|
154
|
+
self._end_span(exc_value)
|
160
155
|
|
161
156
|
def is_within_workflow(self) -> bool:
|
162
157
|
return len(self.workflow_id) > 0
|
@@ -490,7 +485,6 @@ class EnterDBOSWorkflow(AbstractContextManager[DBOSContext, Literal[False]]):
|
|
490
485
|
def __init__(self, attributes: TracedAttributes) -> None:
|
491
486
|
self.created_ctx = False
|
492
487
|
self.attributes = attributes
|
493
|
-
self.is_temp_workflow = attributes["name"] == "temp_wf"
|
494
488
|
self.saved_workflow_timeout: Optional[int] = None
|
495
489
|
self.saved_deduplication_id: Optional[str] = None
|
496
490
|
self.saved_priority: Optional[int] = None
|
@@ -514,7 +508,7 @@ class EnterDBOSWorkflow(AbstractContextManager[DBOSContext, Literal[False]]):
|
|
514
508
|
self.saved_priority = ctx.priority
|
515
509
|
ctx.priority = None
|
516
510
|
ctx.start_workflow(
|
517
|
-
None, self.attributes
|
511
|
+
None, self.attributes
|
518
512
|
) # Will get from the context's next workflow ID
|
519
513
|
return ctx
|
520
514
|
|
@@ -526,7 +520,7 @@ class EnterDBOSWorkflow(AbstractContextManager[DBOSContext, Literal[False]]):
|
|
526
520
|
) -> Literal[False]:
|
527
521
|
ctx = assert_current_dbos_context()
|
528
522
|
assert ctx.is_within_workflow()
|
529
|
-
ctx.end_workflow(exc_value
|
523
|
+
ctx.end_workflow(exc_value)
|
530
524
|
# Restore the saved workflow timeout
|
531
525
|
ctx.workflow_timeout_ms = self.saved_workflow_timeout
|
532
526
|
# Clear any propagating timeout
|
@@ -1187,11 +1187,6 @@ def decorate_step(
|
|
1187
1187
|
async def temp_wf_async(*args: Any, **kwargs: Any) -> Any:
|
1188
1188
|
return await wrapper(*args, **kwargs)
|
1189
1189
|
|
1190
|
-
# Other code in transact-py depends on the name of temporary workflow functions to be "temp_wf"
|
1191
|
-
# so set the name of both sync and async temporary workflow functions explicitly
|
1192
|
-
temp_wf_sync.__name__ = "temp_wf"
|
1193
|
-
temp_wf_async.__name__ = "temp_wf"
|
1194
|
-
|
1195
1190
|
temp_wf = temp_wf_async if inspect.iscoroutinefunction(func) else temp_wf_sync
|
1196
1191
|
wrapped_wf = workflow_wrapper(dbosreg, temp_wf)
|
1197
1192
|
set_dbos_func_name(temp_wf, "<temp>." + step_name)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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-1.6.0a4 → dbos-1.6.0a5}/dbos/_migrations/versions/04ca4f231047_workflow_queues_executor_id.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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|