core: cfg_update() for async task execution
Some checks failed
CMake on multiple platforms / build (Release, clang, DEFAULT, ubuntu-latest, aarch64) (push) Failing after 4s
CMake on multiple platforms / build (Release, clang, DEFAULT, ubuntu-latest, x86_64) (push) Failing after 3s
CMake on multiple platforms / build (Release, gcc, DEFAULT, ubuntu-latest, aarch64) (push) Failing after 3s
CMake on multiple platforms / build (Release, gcc, DEFAULT, ubuntu-latest, x86_64) (push) Failing after 2s
build / build (clang, sid) (push) Failing after 0s
build devcontainer image / build (push) Failing after 3s
build / build (clang, trixie) (push) Failing after 0s
build / build (gcc, sid) (push) Failing after 0s
build / build (gcc, trixie) (push) Failing after 0s
CMake on multiple platforms / build (Release, gcc, DEFAULT, macos-latest, aarch64) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, DEFAULT, macos-latest, aarch64) (push) Has been cancelled

This commit is contained in:
Daniel-Constantin Mierla 2026-08-05 14:57:13 +02:00
parent 94dfa27534
commit 88ef28f787

View file

@ -520,6 +520,7 @@ int async_task_run(async_wgroup_t *awg, int idx)
if(ptask->exec != NULL) { if(ptask->exec != NULL) {
LM_DBG("task executed [%p] (%p/%p)\n", (void *)ptask, LM_DBG("task executed [%p] (%p/%p)\n", (void *)ptask,
(void *)ptask->exec, (void *)ptask->param); (void *)ptask->exec, (void *)ptask->param);
cfg_update();
ptask->exec(ptask->param); ptask->exec(ptask->param);
} else { } else {
LM_DBG("task with no callback function - ignoring\n"); LM_DBG("task with no callback function - ignoring\n");
@ -607,6 +608,7 @@ void async_exec_tkv(void *param)
_ksr_async_tkv_param = adp; _ksr_async_tkv_param = adp;
set_route_type(REQUEST_ROUTE); set_route_type(REQUEST_ROUTE);
keng = sr_kemi_eng_get(); keng = sr_kemi_eng_get();
cfg_update();
if(keng != NULL) { if(keng != NULL) {
if(sr_kemi_route(keng, fmsg, EVENT_ROUTE, &async_tkv_evcb, &evname) if(sr_kemi_route(keng, fmsg, EVENT_ROUTE, &async_tkv_evcb, &evname)
< 0) { < 0) {