Worker Pool Errors from Sensor Template

I had an issue after upgrading to 0.20.3 and eventually 0.21.0 that I couldn’t start the UI. I finally had to rip out everything from my config file and start somewhat fresh to get it up and going again. After slowly adding items back in I have narrowed it down to some sensor templates that are throwing a number of worker pool errors in my log file (see below).

Does anyone see anything wrong with this sensor configuration:

sensor 2:
  platform: template
  sensors:
    batt_garagedoor1:
      value_template: '{{ states.sensor.vision_zg8101_garage_door_detector_burglar_10.attributes.battery_level }}'
      unit_of_measurement: '%'
      friendly_name: 'Garage Door 1 Battery'

I am trying to show the battery level in a card, it does appear on the frontend but I suspect these worker pool errors are not good and my setup is incorrect. Please let me know if you see any issues with my setup or have any ideas.

6-06-08 07:38:19 homeassistant.core: WorkerPool:All 22 threads are busy and 67 jobs pending
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:13.807886-04:00: (<function setup.<locals>.start_zwave at 0x6c181660>, <Event homeassistant_start[L]>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:18.746356-04:00: (<function listen.<locals>.discovery_event_listener at 0x6fc86030>, <Event platform_discovered[L]: discovered=value_id=72057594228523169, node_id=11, service=zwave.sensors>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.038046-04:00: (<function listen.<locals>.discovery_event_listener at 0x6fc56198>, <Event platform_discovered[L]: discovered=value_id=72057594244055040, node_id=12, service=zwave.switch>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.257530-04:00: (<function listen.<locals>.discovery_event_listener at 0x67749858>, <Event platform_discovered[L]: discovered=value_id=72057594260848641, node_id=13, service=zwave.light>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.278962-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x6fc6af60>, <Event state_changed[L]: new_state=None, entity_id=group.all_switches, old_state=<state group.all_switches=off; order=1, auto=True, entity_id=('switch.garage_door_1', 'switch.ge_45609_onoff_relay_switch_switch_2', 'switch.garage_door_2', 'switch.ge_12722_onoff_relay_switch_switch_6'), hidden=True, friendly_name=all switches @ 2016-06-08T07:38:16.744070-04:00>>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.285502-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704eed68>, <Event state_changed[L]: new_state=None, entity_id=group.all_switches, old_state=<state group.all_switches=off; order=1, auto=True, entity_id=('switch.garage_door_1', 'switch.ge_45609_onoff_relay_switch_switch_2', 'switch.garage_door_2', 'switch.ge_12722_onoff_relay_switch_switch_6'), hidden=True, friendly_name=all switches @ 2016-06-08T07:38:16.744070-04:00>>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.294076-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704e4d20>, <Event state_changed[L]: new_state=None, entity_id=group.all_switches, old_state=<state group.all_switches=off; order=1, auto=True, entity_id=('switch.garage_door_1', 'switch.ge_45609_onoff_relay_switch_switch_2', 'switch.garage_door_2', 'switch.ge_12722_onoff_relay_switch_switch_6'), hidden=True, friendly_name=all switches @ 2016-06-08T07:38:16.744070-04:00>>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.347457-04:00: (<function Group._state_changed_listener at 0x6b91ed20>, <Event state_changed[L]: new_state=<state sensor.gd2=closed; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:19.319559-04:00>, entity_id=sensor.gd2, old_state=<state sensor.gd2=; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:08.528370-04:00>>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.357283-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x6fc6af60>, <Event state_changed[L]: new_state=<state sensor.gd2=closed; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:19.319559-04:00>, entity_id=sensor.gd2, old_state=<state sensor.gd2=; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:08.528370-04:00>>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.367274-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704eed68>, <Event state_changed[L]: new_state=<state sensor.gd2=closed; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:19.319559-04:00>, entity_id=sensor.gd2, old_state=<state sensor.gd2=; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:08.528370-04:00>>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.376956-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704e4d20>, <Event state_changed[L]: new_state=<state sensor.gd2=closed; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:19.319559-04:00>, entity_id=sensor.gd2, old_state=<state sensor.gd2=; entity_picture=/local/garagedoor.jpg, friendly_name=Garage 2 @ 2016-06-08T07:38:08.528370-04:00>>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.472232-04:00: (<function Group._state_changed_listener at 0x6b91ed20>, <Event state_changed[L]: new_state=<state sensor.vision_zg8101_garage_door_detector_sourcenodeid_11=0; battery_level=100, friendly_name=Vision ZG8101 Garage Door Detector SourceNodeId, node_id=11 @ 2016-06-08T07:38:19.425727-04:00>, entity_id=sensor.vision_zg8101_garage_door_detector_sourcenodeid_11, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.477404-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704e4d20>, <Event state_changed[L]: new_state=<state light.vision_zl7101_plugin_dimmer_module_level_13=off; friendly_name=Foyer Plugin, node_id=13 @ 2016-06-08T07:38:19.449818-04:00>, entity_id=light.vision_zl7101_plugin_dimmer_module_level_13, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.494404-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x6fc6af60>, <Event state_changed[L]: new_state=<state light.vision_zl7101_plugin_dimmer_module_level_13=off; friendly_name=Foyer Plugin, node_id=13 @ 2016-06-08T07:38:19.449818-04:00>, entity_id=light.vision_zl7101_plugin_dimmer_module_level_13, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.510985-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704eed68>, <Event state_changed[L]: new_state=<state light.vision_zl7101_plugin_dimmer_module_level_13=off; friendly_name=Foyer Plugin, node_id=13 @ 2016-06-08T07:38:19.449818-04:00>, entity_id=light.vision_zl7101_plugin_dimmer_module_level_13, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.522750-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x6fc6af60>, <Event state_changed[L]: new_state=<state sensor.vision_zg8101_garage_door_detector_sourcenodeid_11=0; battery_level=100, friendly_name=Vision ZG8101 Garage Door Detector SourceNodeId, node_id=11 @ 2016-06-08T07:38:19.425727-04:00>, entity_id=sensor.vision_zg8101_garage_door_detector_sourcenodeid_11, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.562026-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704eed68>, <Event state_changed[L]: new_state=<state sensor.vision_zg8101_garage_door_detector_sourcenodeid_11=0; battery_level=100, friendly_name=Vision ZG8101 Garage Door Detector SourceNodeId, node_id=11 @ 2016-06-08T07:38:19.425727-04:00>, entity_id=sensor.vision_zg8101_garage_door_detector_sourcenodeid_11, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.578792-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704e4d20>, <Event state_changed[L]: new_state=<state sensor.vision_zg8101_garage_door_detector_sourcenodeid_11=0; battery_level=100, friendly_name=Vision ZG8101 Garage Door Detector SourceNodeId, node_id=11 @ 2016-06-08T07:38:19.425727-04:00>, entity_id=sensor.vision_zg8101_garage_door_detector_sourcenodeid_11, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.629927-04:00: (<function Group._state_changed_listener at 0x6c181e88>, <Event state_changed[L]: new_state=<state light.vision_zl7101_plugin_dimmer_module_level_13=off; friendly_name=Foyer Plugin, node_id=13 @ 2016-06-08T07:38:19.449818-04:00>, entity_id=light.vision_zl7101_plugin_dimmer_module_level_13, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.646235-04:00: (<function listen.<locals>.discovery_event_listener at 0x6fc56198>, <Event platform_discovered[L]: discovered=value_id=72057594294386688, node_id=15, service=zwave.switch>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.670833-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x704eed68>, <Event state_changed[L]: new_state=<state group.all_switches=off; order=1, auto=True, entity_id=('switch.garage_door_1', 'switch.ge_45609_onoff_relay_switch_switch_2', 'switch.garage_door_2', 'switch.ge_45609_onoff_relay_switch_switch_12', 'switch.ge_12722_onoff_relay_switch_switch_6'), hidden=True, friendly_name=all switches @ 2016-06-08T07:38:19.641180-04:00>, entity_id=group.all_switches, old_state=None>)
16-06-08 07:38:19 homeassistant.core: WorkerPool:Current job from 2016-06-08T07:38:19.675719-04:00: (<function SensorTemplate.__init__.<locals>.template_sensor_state_listener at 0x6fc6af60>, <Event state_changed[L]: new_state=<state group.all_switches=off; order=1, auto=True, entity_id=('switch.garage_door_1', 'switch.ge_45609_onoff_relay_switch_switch_2', 'switch.garage_door_2', 'switch.ge_45609_onoff_relay_switch_switch_12', 'switch.ge_12722_onoff_relay_switch_switch_6'), hidden=True, friendly_name=all switches @ 2016-06-08T07:38:19.641180-04:00>, entity_id=group.all_switches, old_state=None>)
1 Like

Does anyone know definitively if worker pool messages are a bad thing or a sign of bad things to come?

I like to know as well