I have some devices which data needs to be polled and there is no binding available for it. So I’m using Python scripts (and for some, pure HTTP API calls) to poll the data. However it stops executing after some time. Yes I need to use some sleeps and interval during the execution, because it needs some time for execution.
I have found some similar topics, but no real solution. Like remove all sleeps and intervals (which won’t help for me, because then the whole rule is pointless) or to increase cron job thread size. Mainly this is 2 cron job which needs to be polled and I have 1-2 other rule which uses some cron much less often.
What would be the best idea? Using exec binding might help?
Thanks! I have enabled debug logging for quartz.core, I can see some INFO log when refreshing a rule model, but nothing else… I will see your other threads
Thanks I’ll look into. I didn’t have that much time to check this but when I enabled it, I couldn’t see any info regarding cron (I was watching it for almost 20 mins, cron jobs have to happen every 4-5 mins…), not even an error… but when I refreshed the rule, there were some debug log regarding cron so I think it is still running.
I wouldn’t say this is normal… I knew that default only 2 cron jobs allowed pararell, but I have increased it and I never thought that if I have more jobs, that will mean that the whole cron core will fail…
Same for me. Is there an issue created about this in GitHub? If not I’ll make one, hope someday someone will check it…
Did you tried exec binding? I wanted to them with it first but somewhere I stuck that’s why I stepped back. But other commands running with exec binding is working fine even after this cron is down… you can achieve almost the same functionality but you dont have to deal with cron triggers
I’ll try what I said. Move this scripts to be executed by the exec binding. This is the easiest way I think, needs little changes. I will document here my achievements…
Now I have restarted my openHab, I can see the cron debug logs… So that means for me, when it stops, it stops completely, like it is stuck in a deadlock…