Reading many of your other posts and recommendations, about making sure rules run fast, not use sendHttp*Request, etc, and since the batch file is running for ~40 seconds (waiting for the 30 seconds video to finish recording), I am using the following to call the PHP file:
createTimer(now.plusMillis(1), [ | logInfo("EntranceDoorOpened", "BEGINNING: Running email batch file - Home Empty") sendHttpGetRequest("http://192.168.1.111/SendMailOpenHAB.php", 40000) logInfo("EntranceDoorOpened", "END: Running email batch file - Home Empty") ])
I understand this means that the rule does not wait for the HTTP call, as the call is done in a different thread.
1. Does the long wait for the call (40 seconds) can still cause any issues (slowness, high CPU, etc.)?
I read in many posts you wrote, that there is a limit of 5 rule threads that can run at the same time.
2. Is there a limit on the number of “createTimer” threads that can run at the same time?
Since I don’t really care what is the response the HTTP call gets (the PHP file executes the batch file that sends the video) -
3. would you recommend modifying the HTTP call, so it will not wait that long?
Thanks in advance.