]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessors: Improve logging and add new cli options
authorMike Bradeen <mbradeen@sangoma.com>
Tue, 28 Oct 2025 21:26:03 +0000 (15:26 -0600)
committerMike Bradeen <mbradeen@sangoma.com>
Thu, 4 Dec 2025 16:13:02 +0000 (16:13 +0000)
commite016ba689a52b1ba27cdaef3af33a5b3b8694570
treedfbe78845f50e99db662dd554d46ca829c1c929f
parente1d49be69daef5441f547eb3869c401eb31b918c
taskprocessors: Improve logging and add new cli options

This change makes some small changes to improve log readability in
addition to the following changes:

Modified 'core show taskprocessors' to now show Low time and High time
for task execution.

New command 'core show taskprocessor name <taskprocessor-name>' to dump
taskprocessor info and current queue.

Addionally, a new test was added to demonstrate the 'show taskprocessor
name' functionality:
test execute category /main/taskprocessor/ name taskprocessor_cli_show

Setting 'core set debug 3 taskprocessor.c' will now log pushed tasks.
(Warning this is will cause extremely high levels of logging at even
low traffic levels.)

Resolves: #1566

UserNote: New CLI command has been added -
core show taskprocessor name <taskprocessor-name>
include/asterisk/res_pjsip.h
include/asterisk/taskpool.h
include/asterisk/taskprocessor.h
include/asterisk/threadpool.h
main/taskpool.c
main/taskprocessor.c
main/threadpool.c
res/res_pjsip.c
tests/test_taskprocessor.c