-
Change Request
-
Resolution: Won't fix
-
Trivial
-
None
-
6.0.32, 7.0.2
-
None
The task manager process of Zabbix server and proxy is handling tasks every 5 seconds, hard-coded value:
$ grep '#define ZBX_TM_PROCESS_PERIOD' src/zabbix_*/taskmanager/*.c src/zabbix_proxy/taskmanager/taskmanager_proxy.c:#define ZBX_TM_PROCESS_PERIOD 5 src/zabbix_server/taskmanager/taskmanager_server.c:#define ZBX_TM_PROCESS_PERIOD 5
For the tests that involve tasks we must wait for at least 5 seconds before stopping the server to ensure the task was processed. The use of "sleep" is rather inconvenient, instead, we would like to set the frequency to 1 second. The configuration option could be something like:
### Option: TaskManagerFrequency # How often the task manager process of Zabbix server will process tasks (in seconds). # # Mandatory: no # Range: 1-30 # Default: # TaskManagerFrequency=5