Asterisk 24.0.0: Could not find option 'minimum_size' with type 'threadpool' in module 'stasis'

I noticed this log message after the update from 22.11.0 to 24.0.0:

Could not find option 'minimum_size' with type 'threadpool' in module 'stasis'

And stasis.conf looks like this:

[taskpool]
minimum_size = 5          ; Minimum number of taskprocessors in taskpool.
initial_size = 5          ; Initial size of the taskpool.
;                          ; 0 means the taskpool has no taskprocessors initially
;                          ; until a task needs a taskprocessor.
idle_timeout_sec = 20     ; Number of seconds a taskprocessor should be idle before
;                          ; dying. 0 means taskprocessors never time out.
max_size = 50             ; Maximum number of taskprocessors in the Stasis taskpool.
;                          ; 0 means no limit to the number of taskprocessors in the
;                          ; taskpool.

I’m a relatively new asterisk user, but I thought that taskpool has replaced threadpool? I wonder where that comes from, then.

I think it’s a consequence of allowing existing threadpool configurations to work untouched with taskpool. Specifically threadpool never had a minimum_size option and so the mapping of the option from threadpool into taskpool can’t occur when things are setup to allow it. The message itself doesn’t really stop or hinder anything so it can be ignored. It doesn’t prevent the taskpool minimum_size from working.

llmp

The cleanest change is to stop registering minimum_size against the legacy type, since [threadpool] never had that option:

static struct aco_type *taskpool_only_options[] = ACO_TYPES(&taskpool_option);

aco_option_register(&cfg_info, "minimum_size", ACO_EXACT,
    taskpool_only_options, "5", OPT_INT_T, PARSE_IN_RANGE,
    FLDSET(struct stasis_taskpool_conf, minimum_size), 0, INT_MAX);

So… is this just an internal quirk, and my configuration is fine?

Yes, your configuration is fine. This message occurs in 22.11.0 as well, and has been there for over a year at this point. I guess you’re the first person who looked that far and noticed it.