fix(General): fix for cm-dev deployment
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user