ZWave become extremely sluggish when "nightlyCleanupJob" runs

I can't be 100% certain that nightlyCleanupJob is responsible but this always starts somewhere after 2:00 AM and continues until a bit after 3:00 AM and nightlyCleanupJob is set to run at 2:15 AM so it is the smoking gun.

Every night for most of an hour my hub isn't dealing with ZWave devices in any sort of reasonable time period. It can sometimes take 2 minutes for it to actually trigger a zwave device from the time it was switched on the dashboard (or directly from the device page). The worst part is it stores up all the requests and triggers them later. (I finally had time tonight to confirm that Zigbee devices weren't affected.)

- This is actually a safety concern: There are multiple devices controlled with zwave momentary switches like the main access gate, garage doors, etc. A momentary switch is always activated to ON so multiple queued key presses is like pressing the gate/garage button at random. I've had the gate try to close on us as we go through it. I've come home to find the gate partially open. Plus the access lights are on zwave switches and backing into a long driveway under a huge oak tree at night is like backing into a blackhole.
This may have been happening for a long time but in the last year I've been having to go pickup my wife in the early morning hours and it is very often during this time period.

My zwave mesh is setup so there are no devices that require multiple hops to be reached. Any devices that would need to go through a repeater are on a different hub. The momentary switches for the gate and garages are 12 feet from the hub with nothing to interfere with radio between them.

What can be done to troubleshoot or chase down what is causing this? I'm surprised I couldn't find a way to list what commands are waiting in queue. I was also very surprised that I couldn't find any posts referencing "nightlyCleanupJob" except a single one that included it in a list of every scheduled job in the hub.
This has to be fixed or I'll have to scrap this system.:roll_eyes:


C8-Pro - platform version 2.4.4.156 (problem has existed through multiple version upgrades)

Let's go ahead and get this said so the rest of the thread can focus on what you believe to be an issue. If you think

then

is precisely what you should do immediately. Hubitat is a tool. The consequences of how you use it is on you. On its own, it cannot create a hazardous situation until you put it to use.

That said, you have a couple of clues in your post that indicate your situation is a little complex. You have multiple hubs? You have "setup" your Zwave mesh in a particular way? Tell us more. Also, screenshots of logs demonstrating the issue would be helpful.

1 Like

Perhaps this is somehow totally coincidental, but looking at my *nightlyCleanupJob" schedule, it's set for 0314, which is when I've scheduled my (daily) Local Backup time.

I can't speak to any performance weirdness around that time since we're always asleep and nothing at all is happening in the house.

I have a C8 pro (2.4.4.151) and a rule to reboot whenever the hub logs indicate "z-wave" crashed, it has fired ~3 times in the last month. My Z-wave device table is clean of ghosts. Z-wave on my old C7 was much more reliable.(same devices) . My routine for sunset/sunrise misses random device on/off commands once or twice per week. Whateve is causing it will likely get fixed in due time.
Going to try a scheduled reboot Q2days and seei if t helps.