rasa-pro 3.10.7.dev3__py3-none-any.whl → 3.10.7.dev5__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 rasa-pro might be problematic. Click here for more details.
- rasa/model_manager/model_api.py +41 -7
- rasa/version.py +1 -1
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev5.dist-info}/METADATA +1 -1
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev5.dist-info}/RECORD +7 -7
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev5.dist-info}/NOTICE +0 -0
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev5.dist-info}/WHEEL +0 -0
- {rasa_pro-3.10.7.dev3.dist-info → rasa_pro-3.10.7.dev5.dist-info}/entry_points.txt +0 -0
rasa/model_manager/model_api.py
CHANGED
|
@@ -53,26 +53,30 @@ def prepare_working_directories() -> None:
|
|
|
53
53
|
def cleanup_training_processes() -> None:
|
|
54
54
|
"""Terminate all running training processes."""
|
|
55
55
|
structlogger.debug("model_trainer.cleanup_processes.started")
|
|
56
|
-
|
|
56
|
+
running = list(trainings.values())
|
|
57
|
+
for training in running:
|
|
57
58
|
terminate_training(training)
|
|
58
59
|
|
|
59
60
|
|
|
60
61
|
def cleanup_bot_processes() -> None:
|
|
61
62
|
"""Terminate all running bot processes."""
|
|
62
63
|
structlogger.debug("model_runner.cleanup_processes.started")
|
|
63
|
-
|
|
64
|
+
running = list(running_bots.values())
|
|
65
|
+
for bot in running:
|
|
64
66
|
terminate_bot(bot)
|
|
65
67
|
|
|
66
68
|
|
|
67
69
|
def update_status_of_all_trainings() -> None:
|
|
68
70
|
"""Update the status of all training processes."""
|
|
69
|
-
|
|
71
|
+
running = list(trainings.values())
|
|
72
|
+
for training in running:
|
|
70
73
|
update_training_status(training)
|
|
71
74
|
|
|
72
75
|
|
|
73
76
|
async def update_status_of_all_bots() -> None:
|
|
74
77
|
"""Update the status of all bot processes."""
|
|
75
|
-
|
|
78
|
+
running = list(running_bots.values())
|
|
79
|
+
for bot in running:
|
|
76
80
|
await update_bot_status(bot)
|
|
77
81
|
|
|
78
82
|
|
|
@@ -127,9 +131,12 @@ async def continuously_update_process_status() -> None:
|
|
|
127
131
|
structlogger.debug("model_api.update_process_status.started")
|
|
128
132
|
|
|
129
133
|
while True:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
try:
|
|
135
|
+
update_status_of_all_trainings()
|
|
136
|
+
await update_status_of_all_bots()
|
|
137
|
+
await asyncio.sleep(1)
|
|
138
|
+
except Exception as e:
|
|
139
|
+
structlogger.error("model_api.update_process_status.error", error=str(e))
|
|
133
140
|
|
|
134
141
|
|
|
135
142
|
def internal_blueprint() -> Blueprint:
|
|
@@ -360,6 +367,33 @@ def external_blueprint() -> Blueprint:
|
|
|
360
367
|
sio = AsyncServer(async_mode="sanic", cors_allowed_origins=[])
|
|
361
368
|
bp = SocketBlueprint(sio, "", "model_api_external")
|
|
362
369
|
|
|
370
|
+
@bp.get("/health")
|
|
371
|
+
async def health(request: Request) -> response.HTTPResponse:
|
|
372
|
+
return json(
|
|
373
|
+
{
|
|
374
|
+
"status": "ok",
|
|
375
|
+
"bots": [
|
|
376
|
+
{
|
|
377
|
+
"deployment_id": bot.deployment_id,
|
|
378
|
+
"status": bot.status,
|
|
379
|
+
"internal_url": bot.internal_url,
|
|
380
|
+
"url": bot.url,
|
|
381
|
+
}
|
|
382
|
+
for bot in running_bots.values()
|
|
383
|
+
],
|
|
384
|
+
"trainings": [
|
|
385
|
+
{
|
|
386
|
+
"training_id": training.training_id,
|
|
387
|
+
"assistant_id": training.assistant_id,
|
|
388
|
+
"client_id": training.client_id,
|
|
389
|
+
"progress": training.progress,
|
|
390
|
+
"status": training.status,
|
|
391
|
+
}
|
|
392
|
+
for training in trainings.values()
|
|
393
|
+
],
|
|
394
|
+
}
|
|
395
|
+
)
|
|
396
|
+
|
|
363
397
|
@bp.route("/logs/<path:path>")
|
|
364
398
|
async def get_training_logs(request: Request, path: str) -> response.HTTPResponse:
|
|
365
399
|
try:
|
rasa/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rasa-pro
|
|
3
|
-
Version: 3.10.7.
|
|
3
|
+
Version: 3.10.7.dev5
|
|
4
4
|
Summary: State-of-the-art open-core Conversational AI framework for Enterprises that natively leverages generative AI for effortless assistant development.
|
|
5
5
|
Home-page: https://rasa.com
|
|
6
6
|
Keywords: nlp,machine-learning,machine-learning-library,bot,bots,botkit,rasa conversational-agents,conversational-ai,chatbot,chatbot-framework,bot-framework
|
|
@@ -484,7 +484,7 @@ rasa/markers/validate.py,sha256=YypXKRS87xxrMMEz9HpAQzYJUwg0OPbczMXBRNjlJq4,709
|
|
|
484
484
|
rasa/model.py,sha256=GH1-N6Po3gL3nwfa9eGoN2bMRNMrn4f3mi17-osW3T0,3491
|
|
485
485
|
rasa/model_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
486
486
|
rasa/model_manager/config.py,sha256=LCzRoV78bLX_FREW7hfQLsQepupoTs1m-CnK3u_D01s,349
|
|
487
|
-
rasa/model_manager/model_api.py,sha256=
|
|
487
|
+
rasa/model_manager/model_api.py,sha256=6BHK8Qme8gpMwzQ31DTdMBGhXzfe3DE2cVd7tbJGyPE,16403
|
|
488
488
|
rasa/model_manager/runner_service.py,sha256=aMupR7t0EEy2yOGT5cR_6kluApnwOiiGkjyIVYxdsMk,5553
|
|
489
489
|
rasa/model_manager/socket_bridge.py,sha256=f-dhsV8xYaENXVZT5OOzkMdpSPPPxFEzsQqNJAuktxQ,1390
|
|
490
490
|
rasa/model_manager/trainer_service.py,sha256=7LP_EsLQt-P2oqO1AgqbgIcTC515eCW58BamDkDjJjw,7856
|
|
@@ -727,9 +727,9 @@ rasa/utils/train_utils.py,sha256=f1NWpp5y6al0dzoQyyio4hc4Nf73DRoRSHDzEK6-C4E,212
|
|
|
727
727
|
rasa/utils/url_tools.py,sha256=JQcHL2aLqLHu82k7_d9imUoETCm2bmlHaDpOJ-dKqBc,1218
|
|
728
728
|
rasa/utils/yaml.py,sha256=KjbZq5C94ZP7Jdsw8bYYF7HASI6K4-C_kdHfrnPLpSI,2000
|
|
729
729
|
rasa/validator.py,sha256=HM0ZIWjo3JRt2FMIfgNI_s932OABOSXkflm-rFTNkvY,62608
|
|
730
|
-
rasa/version.py,sha256=
|
|
731
|
-
rasa_pro-3.10.7.
|
|
732
|
-
rasa_pro-3.10.7.
|
|
733
|
-
rasa_pro-3.10.7.
|
|
734
|
-
rasa_pro-3.10.7.
|
|
735
|
-
rasa_pro-3.10.7.
|
|
730
|
+
rasa/version.py,sha256=nZYg5eop2_tsKPRLWnWE9JxkDMeo0ObpKxBEAtArcGk,122
|
|
731
|
+
rasa_pro-3.10.7.dev5.dist-info/METADATA,sha256=jXD7sJZgCCyQGZyBYOcr-1JKPeLGX9eoN0QRJmeFSAY,28217
|
|
732
|
+
rasa_pro-3.10.7.dev5.dist-info/NOTICE,sha256=7HlBoMHJY9CL2GlYSfTQ-PZsVmLmVkYmMiPlTjhuCqA,218
|
|
733
|
+
rasa_pro-3.10.7.dev5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
734
|
+
rasa_pro-3.10.7.dev5.dist-info/entry_points.txt,sha256=ckJ2SfEyTPgBqj_I6vm_tqY9dZF_LAPJZA335Xp0Q9U,43
|
|
735
|
+
rasa_pro-3.10.7.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|