dbos 2.2.0a3__py3-none-any.whl → 2.3.0a1__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/_client.py +12 -2
- {dbos-2.2.0a3.dist-info → dbos-2.3.0a1.dist-info}/METADATA +1 -1
- {dbos-2.2.0a3.dist-info → dbos-2.3.0a1.dist-info}/RECORD +6 -6
- {dbos-2.2.0a3.dist-info → dbos-2.3.0a1.dist-info}/WHEEL +0 -0
- {dbos-2.2.0a3.dist-info → dbos-2.3.0a1.dist-info}/entry_points.txt +0 -0
- {dbos-2.2.0a3.dist-info → dbos-2.3.0a1.dist-info}/licenses/LICENSE +0 -0
dbos/_client.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import asyncio
|
2
|
+
import json
|
2
3
|
import time
|
3
4
|
import uuid
|
4
5
|
from typing import (
|
@@ -63,6 +64,8 @@ class EnqueueOptions(_EnqueueOptionsRequired, total=False):
|
|
63
64
|
priority: int
|
64
65
|
max_recovery_attempts: int
|
65
66
|
queue_partition_key: str
|
67
|
+
authenticated_user: str
|
68
|
+
authenticated_roles: list[str]
|
66
69
|
|
67
70
|
|
68
71
|
def validate_enqueue_options(options: EnqueueOptions) -> None:
|
@@ -189,6 +192,13 @@ class DBOSClient:
|
|
189
192
|
"queue_partition_key": options.get("queue_partition_key"),
|
190
193
|
}
|
191
194
|
|
195
|
+
authenticated_user = options.get("authenticated_user")
|
196
|
+
authenticated_roles = (
|
197
|
+
json.dumps(options.get("authenticated_roles"))
|
198
|
+
if options.get("authenticated_roles")
|
199
|
+
else None
|
200
|
+
)
|
201
|
+
|
192
202
|
inputs: WorkflowInputs = {
|
193
203
|
"args": args,
|
194
204
|
"kwargs": kwargs,
|
@@ -202,9 +212,9 @@ class DBOSClient:
|
|
202
212
|
"queue_name": queue_name,
|
203
213
|
"app_version": enqueue_options_internal["app_version"],
|
204
214
|
"config_name": None,
|
205
|
-
"authenticated_user":
|
215
|
+
"authenticated_user": authenticated_user,
|
206
216
|
"assumed_role": None,
|
207
|
-
"authenticated_roles":
|
217
|
+
"authenticated_roles": authenticated_roles,
|
208
218
|
"output": None,
|
209
219
|
"error": None,
|
210
220
|
"created_at": None,
|
@@ -1,13 +1,13 @@
|
|
1
|
-
dbos-2.
|
2
|
-
dbos-2.
|
3
|
-
dbos-2.
|
4
|
-
dbos-2.
|
1
|
+
dbos-2.3.0a1.dist-info/METADATA,sha256=IwUb-JebRHeYxRbGuyr-IlVz_tkQsA7OI5M_j2UvcOE,14532
|
2
|
+
dbos-2.3.0a1.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
3
|
+
dbos-2.3.0a1.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
4
|
+
dbos-2.3.0a1.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
5
5
|
dbos/__init__.py,sha256=M7FdFSBGhcvaLIXrNw_0eR68ijwMWV7_UEyimHMP_F4,1039
|
6
6
|
dbos/__main__.py,sha256=G7Exn-MhGrVJVDbgNlpzhfh8WMX_72t3_oJaFT9Lmt8,653
|
7
7
|
dbos/_admin_server.py,sha256=hubQJw5T8zGKCPNS6FQTXy8jQ8GTJxoYQaDTMlICl9k,16267
|
8
8
|
dbos/_app_db.py,sha256=mvWQ66ebdbiD9fpGKHZBWNVEza6Ulo1D-3UoTB_LwRc,16378
|
9
9
|
dbos/_classproperty.py,sha256=f0X-_BySzn3yFDRKB2JpCbLYQ9tLwt1XftfshvY7CBs,626
|
10
|
-
dbos/_client.py,sha256=
|
10
|
+
dbos/_client.py,sha256=0VR9oWBn0i-34jNWHqkgeImKdg5aBefMWu2jaqRLH8Q,19658
|
11
11
|
dbos/_conductor/conductor.py,sha256=3E_hL3c9g9yWqKZkvI6KA0-ZzPMPRo06TOzT1esMiek,24114
|
12
12
|
dbos/_conductor/protocol.py,sha256=q3rgLxINFtWFigdOONc-4gX4vn66UmMlJQD6Kj8LnL4,7420
|
13
13
|
dbos/_context.py,sha256=XKllmsDR_oMcWOuZnoe1X4yv2JeOi_vsAuyWC-mWs_o,28164
|
@@ -56,4 +56,4 @@ dbos/cli/migration.py,sha256=I0_0ngWTuCPQf6Symbpd0lizaxWUKe3uTYEmuCmsrdU,3775
|
|
56
56
|
dbos/dbos-config.schema.json,sha256=47wofTZ5jlFynec7bG0L369tAXbRQQ2euBxBXvg4m9c,1730
|
57
57
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
58
58
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
59
|
-
dbos-2.
|
59
|
+
dbos-2.3.0a1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|