No.
Hey, it was worth a shot.
Note that the hub's power connection is micro-USB, so you'd only get a 5V reading (at best).
So? Plus, it's USB-C, I believe.
The C-5 and C-7 are Micro USB.
Ok, I guess I'm wrong.
The C8, which hasn’t been released yet, has a USB C connector according to the documents submitted to the FCC.
I think I got messed up because of the title of the ups project.
Hi everyone!
Is there an undocumented command to access cron on the hub (remove/finalize a particular job)? It doesn't seem to work in my system (after an upgrade from 2.2.8.156 to 2.3.5.141), no resolution has been found so far. Can't even list of things I've tried - going back to previous backups, soft reset, ...
It's a job with no name that stuck in the cron's schedule that prevents the service to continue running (can be seen via http://hubitat.local/logs --> Scheduled jobs).
Any other ideas how to kill that job?
Thanks in advance!
I've forwarded this to one of the engineers. We'll look into it. Send my your hubID by PM.
There isn't one right now, but I'll add one in the next build.
There are endpoints to delete all jobs for a given app/device, but they're not going to be useful in this scenario since the job is orphaned.
Looking forward to any tool you can offer in the next build, thanks. Just FYI I've bumped into several more similar (if not identical) cases even through this community forum. Cron (internal) is really not easy to manage (without system access to the service which is a conceptual base for hubitat)
"updateCheck" is a method I have been using in the code I maintain.
Note the upperCase C in the name. Your log is showing "updatecheck" which isn't mine, as far as I know.
I've been retiring "updateCheck" as opportunities arise. Most recently, it was removed from Aeotec Multisensor 6 driver.
Thanks for the idea. Seems like updateCheck was removed at v2.1.0. Well, "updatecheck" method is from something else, indeed.
I've spent a substantial amount of time trying to developer a driver code with this method in order to remove the orphaned job. All in vain:-(.
So the only solution I see here is for Hubitat to be able to manage this type of faulty jobs, either on its own or giving a user a tool for manual cleanup. Will wait for it in the next build...
In that code, updated() does an unsubscribe() and was, a release ago, followed by a schedule(..). I removed the schedule(..) as well as the updateCheck method. So... clicking on Save Preferences should have cleared it out. The mechanism to get into this state is a puzzle for me. I'd think the driver would have to be swapped, probably for a built-in, leaving the schedule(..) behind with no method to call. I don't see how that would then leave the device name empty. IF it's an App, then deleting the app could do that but the platform would do an unsubscribe() as part of the delete, wouldn't it? If it doesn't this would be a much bigger problem than just you
The orphaned scheduled job you have is something we haven't seen before, and obviously it would be best if such a thing could never arise (if we knew how it arose we'd fix it).
It's pretty easy for an app to manage Cron for itself. Two sides to it, establishing a schedule and removing a schedule (changing one being accomplished by remove and re-establish). The hub method schedule(cron-string, myScheduledMethod)
allows the schedule from any cron string to be established. The hub method unschedule(myScheduledMethod)
removes any schedule that references that method. Refined control by these two methods does imply using a separate scheduled method for any schedule that might require individual management, but generally this is not a burden for an app.
Full direct cron management by a user is not supported. But it's not a design objective of the hub to put this sort of feature directly in users hands. The hub's design relegates schedule creation and management to apps and drivers.
I've had this problem before, with some old build. It got self-resolved after another upgrade which made me happy at the time 'cause the db was heavily growing daily and negatively impacting the hub performance. Back in times it wasn't that easy to clean db and to see scheduled jobs via ui (had some scripts for that afair).
Here's how see the issue now:
- Short term solution is to get rid of the orphaned job. This might only be a special hub advanced command/tool that might cleanup cron schedules disregarding the jobs namespace.
- Long term - find the cultpit. If the issue arises after an upgrade of my system in particular, I'm going to watch another one carefully.
Corrupted CRON is not an new problem to this community. It's rebuild/cleanup is certainly a helpful tool to anyone impacted.
Also, I've caught the idea of an orhraned schedule job ("no name") right here, at community.hubitat.com. Just can't find the right thread a.t.m.
Would you know when the next build is scheduled to be released publicly? If I can get help with db/cron cleaning tool before the next build release, it'd be awesome. I've really tired of non-operating scheduled jobs at my hub
We don't have a date at this time. It will go to beta at some point, prior to public release. That has not happened yet.
Appreciate a new feature with the new build - delete scheduled jobs (individually) via ui. Cleaning uo all jobs didn't help my crob to return back to functional state, unfortunately, the service is still not running. Not sure even how to get visibility into that internal service for further troubleshooing:-(