dbos 0.24.0a3__py3-none-any.whl → 0.24.0a4__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 +16 -0
- dbos/_conductor/protocol.py +12 -0
- {dbos-0.24.0a3.dist-info → dbos-0.24.0a4.dist-info}/METADATA +1 -1
- {dbos-0.24.0a3.dist-info → dbos-0.24.0a4.dist-info}/RECORD +7 -7
- {dbos-0.24.0a3.dist-info → dbos-0.24.0a4.dist-info}/WHEEL +0 -0
- {dbos-0.24.0a3.dist-info → dbos-0.24.0a4.dist-info}/entry_points.txt +0 -0
- {dbos-0.24.0a3.dist-info → dbos-0.24.0a4.dist-info}/licenses/LICENSE +0 -0
dbos/_conductor/conductor.py
CHANGED
|
@@ -194,6 +194,22 @@ class ConductorWebsocket(threading.Thread):
|
|
|
194
194
|
),
|
|
195
195
|
)
|
|
196
196
|
websocket.send(get_workflow_response.to_json())
|
|
197
|
+
elif msg_type == p.MessageType.EXIST_PENDING_WORKFLOWS:
|
|
198
|
+
exist_pending_workflows_message = (
|
|
199
|
+
p.ExistPendingWorkflowsRequest.from_json(message)
|
|
200
|
+
)
|
|
201
|
+
pending_wfs = self.dbos._sys_db.get_pending_workflows(
|
|
202
|
+
exist_pending_workflows_message.executor_id,
|
|
203
|
+
exist_pending_workflows_message.application_version,
|
|
204
|
+
)
|
|
205
|
+
exist_pending_workflows_response = (
|
|
206
|
+
p.ExistPendingWorkflowsResponse(
|
|
207
|
+
type=p.MessageType.EXIST_PENDING_WORKFLOWS,
|
|
208
|
+
request_id=base_message.request_id,
|
|
209
|
+
exist=len(pending_wfs) > 0,
|
|
210
|
+
)
|
|
211
|
+
)
|
|
212
|
+
websocket.send(exist_pending_workflows_response.to_json())
|
|
197
213
|
else:
|
|
198
214
|
self.dbos.logger.warning(
|
|
199
215
|
f"Unexpected message type: {msg_type}"
|
dbos/_conductor/protocol.py
CHANGED
|
@@ -15,6 +15,7 @@ class MessageType(str, Enum):
|
|
|
15
15
|
RESUME = "resume"
|
|
16
16
|
RESTART = "restart"
|
|
17
17
|
GET_WORKFLOW = "get_workflow"
|
|
18
|
+
EXIST_PENDING_WORKFLOWS = "exist_pending_workflows"
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
T = TypeVar("T", bound="BaseMessage")
|
|
@@ -195,3 +196,14 @@ class GetWorkflowRequest(BaseMessage):
|
|
|
195
196
|
@dataclass
|
|
196
197
|
class GetWorkflowResponse(BaseMessage):
|
|
197
198
|
output: Optional[WorkflowsOutput]
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
@dataclass
|
|
202
|
+
class ExistPendingWorkflowsRequest(BaseMessage):
|
|
203
|
+
executor_id: str
|
|
204
|
+
application_version: str
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
@dataclass
|
|
208
|
+
class ExistPendingWorkflowsResponse(BaseMessage):
|
|
209
|
+
exist: bool
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
dbos-0.24.
|
|
2
|
-
dbos-0.24.
|
|
3
|
-
dbos-0.24.
|
|
4
|
-
dbos-0.24.
|
|
1
|
+
dbos-0.24.0a4.dist-info/METADATA,sha256=WqbCY_vtpMPqlArkZMKDKE3NDx7WhS-NrwTPh6jEj2c,5555
|
|
2
|
+
dbos-0.24.0a4.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
3
|
+
dbos-0.24.0a4.dist-info/entry_points.txt,sha256=_QOQ3tVfEjtjBlr1jS4sHqHya9lI2aIEIWkz8dqYp14,58
|
|
4
|
+
dbos-0.24.0a4.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=tvB1k8V3ZsI3MBEcG9sIkfbsHHx_Cvh0FZAi9vSPrXU,12698
|
|
14
|
+
dbos/_conductor/protocol.py,sha256=Lo-DjvKevTS2uKyITLjjVp56rBRzaQfKkKpieZz3VAs,5088
|
|
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.24.
|
|
68
|
+
dbos-0.24.0a4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|