dbos 1.3.0a7__py3-none-any.whl → 1.3.0a8__py3-none-any.whl

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/_queue.py CHANGED
@@ -7,7 +7,7 @@ from sqlalchemy.exc import OperationalError
7
7
 
8
8
  from dbos._context import get_local_dbos_context
9
9
  from dbos._logger import dbos_logger
10
- from dbos._utils import GlobalParams
10
+ from dbos._utils import INTERNAL_QUEUE_NAME, GlobalParams
11
11
 
12
12
  from ._core import P, R, execute_workflow_by_id, start_workflow, start_workflow_async
13
13
 
@@ -60,7 +60,7 @@ class Queue:
60
60
  from ._dbos import _get_or_create_dbos_registry
61
61
 
62
62
  registry = _get_or_create_dbos_registry()
63
- if self.name in registry.queue_info_map:
63
+ if self.name in registry.queue_info_map and self.name != INTERNAL_QUEUE_NAME:
64
64
  dbos_logger.warning(f"Queue {name} has already been declared")
65
65
  registry.queue_info_map[self.name] = self
66
66
 
@@ -75,7 +75,9 @@ class Queue:
75
75
  and context.priority is not None
76
76
  and not self.priority_enabled
77
77
  ):
78
- dbos_logger.warning(f"Priority is not enabled for queue {self.name}. Setting priority will not have any effect.")
78
+ dbos_logger.warning(
79
+ f"Priority is not enabled for queue {self.name}. Setting priority will not have any effect."
80
+ )
79
81
 
80
82
  dbos = _get_dbos_instance()
81
83
  return start_workflow(dbos, func, self.name, False, *args, **kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbos
3
- Version: 1.3.0a7
3
+ Version: 1.3.0a8
4
4
  Summary: Ultra-lightweight durable execution in Python
5
5
  Author-Email: "DBOS, Inc." <contact@dbos.dev>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
- dbos-1.3.0a7.dist-info/METADATA,sha256=niVru1hNRSgrq4e_MBCmWXBVzq0j3S80W_GClfpA6RE,13267
2
- dbos-1.3.0a7.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- dbos-1.3.0a7.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
4
- dbos-1.3.0a7.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
1
+ dbos-1.3.0a8.dist-info/METADATA,sha256=-8b7wnKoWpc5UCVaKOSah7jpJMbC-RjV0i1tQwQ4gw0,13267
2
+ dbos-1.3.0a8.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ dbos-1.3.0a8.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
4
+ dbos-1.3.0a8.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
5
5
  dbos/__init__.py,sha256=NssPCubaBxdiKarOWa-wViz1hdJSkmBGcpLX_gQ4NeA,891
6
6
  dbos/__main__.py,sha256=G7Exn-MhGrVJVDbgNlpzhfh8WMX_72t3_oJaFT9Lmt8,653
7
7
  dbos/_admin_server.py,sha256=TWXi4drrzKFpKkUmEJpJkQBZxAtOalnhtYicEn2nDK0,10618
@@ -40,7 +40,7 @@ dbos/_migrations/versions/d994145b47b6_consolidate_inputs.py,sha256=_J0jP247fuo6
40
40
  dbos/_migrations/versions/eab0cc1d9a14_job_queue.py,sha256=uvhFOtqbBreCePhAxZfIT0qCAI7BiZTou9wt6QnbY7c,1412
41
41
  dbos/_migrations/versions/f4b9b32ba814_functionname_childid_op_outputs.py,sha256=m90Lc5YH0ZISSq1MyxND6oq3RZrZKrIqEsZtwJ1jWxA,1049
42
42
  dbos/_outcome.py,sha256=EXxBg4jXCVJsByDQ1VOCIedmbeq_03S6d-p1vqQrLFU,6810
43
- dbos/_queue.py,sha256=w3vjOqU0NNdQlUFcvhhdRIzepcS2gtWJCgzobR1dJ8U,4009
43
+ dbos/_queue.py,sha256=Csp6wrLg6TyZJMeAWkbQAiviIDiucbP-qrBaqp2WJwY,4097
44
44
  dbos/_recovery.py,sha256=jVMexjfCCNopzyn8gVQzJCmGJaP9G3C1EFaoCQ_Nh7g,2564
45
45
  dbos/_registrations.py,sha256=CZt1ElqDjCT7hz6iyT-1av76Yu-iuwu_c9lozO87wvM,7303
46
46
  dbos/_roles.py,sha256=iOsgmIAf1XVzxs3gYWdGRe1B880YfOw5fpU7Jwx8_A8,2271
@@ -69,4 +69,4 @@ dbos/cli/cli.py,sha256=EemOMqNpzSU2BQhAxV_e59pBRITDLwt49HF6W3uWBZg,20775
69
69
  dbos/dbos-config.schema.json,sha256=CjaspeYmOkx6Ip_pcxtmfXJTn_YGdSx_0pcPBF7KZmo,6060
70
70
  dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
71
71
  version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
72
- dbos-1.3.0a7.dist-info/RECORD,,
72
+ dbos-1.3.0a8.dist-info/RECORD,,
File without changes