fix(General): fix for cm-dev deployment
Build and Publish Docker Image / build-and-push (push) Waiting to run
Unit test coverage / pytest (push) Failing after 1m32s
/ build-and-push (push) Successful in 1m35s

This commit is contained in:
2025-07-08 18:38:40 +08:00
parent fde6f17b58
commit 771154facd
5 changed files with 13 additions and 12 deletions
@@ -491,6 +491,9 @@ class CleverThisServiceAdapter:
_routes = self.routes.get(method, [])
_path, _args = AMQDataParser.parse_get_url(message.path())
for _route in _routes:
# TODO: here the regex will match with path prefix,
# but it might not be a stable feature that we could rely on.
# Need to figure out something stable for the prefix path.
_match = _route.path_regex.match(_path)
if _match:
_args.update(_match.groupdict())
+2 -8
View File
@@ -125,10 +125,7 @@ class DataMessageHandler:
"""
# Increment the counter for parallel executions and check resource availability
self.backpressure_handler.increase_parallel_executions()
await self.backpressure_handler.check_resource_availability(
self.backpressure_handler.current_parallel_executions,
self.backpressure_handler.parallel_workers,
)
await self.backpressure_handler.check_overload_condition()
logging_info(
f"PARALLEL: Current Capacity [{self.backpressure_handler.current_parallel_executions}] of [{self.backpressure_handler.parallel_workers}]"
)
@@ -159,10 +156,7 @@ class DataMessageHandler:
logging_error(f"Request handler: {e}")
self.backpressure_handler.decrease_parallel_executions()
await self.backpressure_handler.check_resource_availability(
self.backpressure_handler.current_parallel_executions,
self.backpressure_handler.parallel_workers,
)
await self.backpressure_handler.check_overload_condition()
async def reconstitute_data_message(
self, message: AbstractIncomingMessage