From a2530363bba4415dcb82f4a03691e3e2aa48c88e Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 31 Mar 2021 08:02:21 +0200 Subject: [PATCH] dmq: docs for dmq_process_message() --- src/modules/dmq/doc/dmq_admin.xml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/modules/dmq/doc/dmq_admin.xml b/src/modules/dmq/doc/dmq_admin.xml index b48eea4fe1a..20a2e647b3b 100644 --- a/src/modules/dmq/doc/dmq_admin.xml +++ b/src/modules/dmq/doc/dmq_admin.xml @@ -293,6 +293,41 @@ modparam("dmq", "ping_interval", 90) dmq_handle_message(); } ... + + + +
+ + <function moreinfo="none">dmq_process_message([continue])</function> + + + Similar to dmq_handle_message, but the processing is happening + immediately, no longer cloning the request in shared memory + to be passed to a DMQ worker process. + + Meaning of parameters: + + + + continue - by default, dmq_process_message() will end + execution of routing script by returning 0. If this optional parameter + is set to "1", dmq_process_message() will continue executing the routing + script after it is been executed, returning 1. + + + + + This function can be used from REQUEST_ROUTE. + + + + <function>dmq_process_message</function> usage + +... + if(is_method("KDMQ")) { + dmq_process_message(); + } +...