dbos 0.23.0a12__py3-none-any.whl → 0.23.0a13__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.
Potentially problematic release.
This version of dbos might be problematic. Click here for more details.
- dbos/_conductor/conductor.py +20 -1
- dbos/_conductor/protocol.py +11 -0
- {dbos-0.23.0a12.dist-info → dbos-0.23.0a13.dist-info}/METADATA +1 -1
- {dbos-0.23.0a12.dist-info → dbos-0.23.0a13.dist-info}/RECORD +7 -7
- {dbos-0.23.0a12.dist-info → dbos-0.23.0a13.dist-info}/WHEEL +0 -0
- {dbos-0.23.0a12.dist-info → dbos-0.23.0a13.dist-info}/entry_points.txt +0 -0
- {dbos-0.23.0a12.dist-info → dbos-0.23.0a13.dist-info}/licenses/LICENSE +0 -0
dbos/_conductor/conductor.py
CHANGED
|
@@ -8,7 +8,7 @@ from websockets.sync.client import connect
|
|
|
8
8
|
from websockets.sync.connection import Connection
|
|
9
9
|
|
|
10
10
|
from dbos._utils import GlobalParams
|
|
11
|
-
from dbos._workflow_commands import list_queued_workflows, list_workflows
|
|
11
|
+
from dbos._workflow_commands import get_workflow, list_queued_workflows, list_workflows
|
|
12
12
|
|
|
13
13
|
from . import protocol as p
|
|
14
14
|
|
|
@@ -175,6 +175,25 @@ class ConductorWebsocket(threading.Thread):
|
|
|
175
175
|
)
|
|
176
176
|
)
|
|
177
177
|
websocket.send(list_queued_workflows_response.to_json())
|
|
178
|
+
elif type == p.MessageType.GET_WORKFLOW:
|
|
179
|
+
get_workflow_message = p.GetWorkflowRequest.from_json(
|
|
180
|
+
message
|
|
181
|
+
)
|
|
182
|
+
info = get_workflow(
|
|
183
|
+
self.dbos._sys_db,
|
|
184
|
+
get_workflow_message.workflow_id,
|
|
185
|
+
getRequest=False,
|
|
186
|
+
)
|
|
187
|
+
get_workflow_response = p.GetWorkflowResponse(
|
|
188
|
+
type=p.MessageType.GET_WORKFLOW,
|
|
189
|
+
request_id=base_message.request_id,
|
|
190
|
+
output=(
|
|
191
|
+
p.WorkflowsOutput.from_workflow_information(info)
|
|
192
|
+
if info is not None
|
|
193
|
+
else None
|
|
194
|
+
),
|
|
195
|
+
)
|
|
196
|
+
websocket.send(get_workflow_response.to_json())
|
|
178
197
|
else:
|
|
179
198
|
self.dbos.logger.warning(f"Unexpected message type: {type}")
|
|
180
199
|
except ConnectionClosedOK:
|
dbos/_conductor/protocol.py
CHANGED
|
@@ -14,6 +14,7 @@ class MessageType(str, Enum):
|
|
|
14
14
|
LIST_QUEUED_WORKFLOWS = "list_queued_workflows"
|
|
15
15
|
RESUME = "resume"
|
|
16
16
|
RESTART = "restart"
|
|
17
|
+
GET_WORKFLOW = "get_workflow"
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
T = TypeVar("T", bound="BaseMessage")
|
|
@@ -184,3 +185,13 @@ class ListQueuedWorkflowsRequest(BaseMessage):
|
|
|
184
185
|
@dataclass
|
|
185
186
|
class ListQueuedWorkflowsResponse(BaseMessage):
|
|
186
187
|
output: List[WorkflowsOutput]
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
@dataclass
|
|
191
|
+
class GetWorkflowRequest(BaseMessage):
|
|
192
|
+
workflow_id: str
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
@dataclass
|
|
196
|
+
class GetWorkflowResponse(BaseMessage):
|
|
197
|
+
output: Optional[WorkflowsOutput]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
dbos-0.23.
|
|
2
|
-
dbos-0.23.
|
|
3
|
-
dbos-0.23.
|
|
4
|
-
dbos-0.23.
|
|
1
|
+
dbos-0.23.0a13.dist-info/METADATA,sha256=NGDpQapDUzGaa6Iu-0sMoP32p_Fi_Co7-WFC_kACtIU,5556
|
|
2
|
+
dbos-0.23.0a13.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
dbos-0.23.0a13.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-0.23.0a13.dist-info/licenses/LICENSE,sha256=VGZit_a5-kdw9WT6fY5jxAWVwGQzgLFyPWrcVVUhVNU,1067
|
|
5
5
|
dbos/__init__.py,sha256=CxRHBHEthPL4PZoLbZhp3rdm44-KkRTT2-7DkK9d4QQ,724
|
|
6
6
|
dbos/__main__.py,sha256=P7jAr-7L9XE5mrsQ7i4b-bLr2ap1tCQfhMByLCRWDj0,568
|
|
7
7
|
dbos/_admin_server.py,sha256=YiVn5lywz2Vg8_juyNHOYl0HVEy48--7b4phwK7r92o,5732
|
|
@@ -10,8 +10,8 @@ dbos/_classproperty.py,sha256=f0X-_BySzn3yFDRKB2JpCbLYQ9tLwt1XftfshvY7CBs,626
|
|
|
10
10
|
dbos/_cloudutils/authentication.py,sha256=V0fCWQN9stCkhbuuxgPTGpvuQcDqfU3KAxPAh01vKW4,5007
|
|
11
11
|
dbos/_cloudutils/cloudutils.py,sha256=YC7jGsIopT0KveLsqbRpQk2KlRBk-nIRC_UCgep4f3o,7797
|
|
12
12
|
dbos/_cloudutils/databases.py,sha256=_shqaqSvhY4n2ScgQ8IP5PDZvzvcx3YBKV8fj-cxhSY,8543
|
|
13
|
-
dbos/_conductor/conductor.py,sha256=
|
|
14
|
-
dbos/_conductor/protocol.py,sha256=
|
|
13
|
+
dbos/_conductor/conductor.py,sha256=uX6DsAw0vpu4Gf5pxZJL7YrMSfJptCvRCnt14AUURFo,11123
|
|
14
|
+
dbos/_conductor/protocol.py,sha256=HLHS1bOdFdQhwA05wXDCd3O704ki72ju1UUBXz0UB-0,4841
|
|
15
15
|
dbos/_context.py,sha256=Ue5qu3rzLfRmPkz-UUZi9ZS8iXpapRN0NTM4mbA2QmQ,17738
|
|
16
16
|
dbos/_core.py,sha256=UQb068FT59Op-F5RmtxreSeSQ1_wljOso0dQCUOPrC4,37528
|
|
17
17
|
dbos/_croniter.py,sha256=XHAyUyibs_59sJQfSNWkP7rqQY6_XrlfuuCxk4jYqek,47559
|
|
@@ -65,4 +65,4 @@ dbos/cli/cli.py,sha256=ThomRytw7EP5iOcrjEgwnpaWgXNTLfnFEBBvCGHxtJs,15590
|
|
|
65
65
|
dbos/dbos-config.schema.json,sha256=X5TpXNcARGceX0zQs0fVgtZW_Xj9uBbY5afPt9Rz9yk,5741
|
|
66
66
|
dbos/py.typed,sha256=QfzXT1Ktfk3Rj84akygc7_42z0lRpCq0Ilh8OXI6Zas,44
|
|
67
67
|
version/__init__.py,sha256=L4sNxecRuqdtSFdpUGX3TtBi9KL3k7YsZVIvv-fv9-A,1678
|
|
68
|
-
dbos-0.23.
|
|
68
|
+
dbos-0.23.0a13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|