Lua script execution exceeds maximum number of lines

Moderator: leecollings

Post Reply
Filnet
Posts: 84
Joined: Tuesday 06 March 2018 13:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1 ß
Location: FR
Contact:

Lua script execution exceeds maximum number of lines

Post by Filnet »

Hello,

I have two dzvents scripts which use the JSON module and run every minute.
If i enabled these two scripts (A and B), A works well but B get an error 'Lua script execution exceeds maximum number of lines'
If i disable A, B works well.
If A run "every 2 minutes" and B "every minute", B get an error only the same minute A is running.

The JSON module seems not purge data between the dzvents scripts running in the same minute.

Do you have an idea to solve this problem?
User avatar
jvdz
Posts: 2484
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Lua script execution exceeds maximum number of lines

Post by jvdz »

Without really seeing what you are doing with those 2 scripts, my bet would be that the 2 scripts together run longer than 10 seconds.
So when they each run for 6 seconds, they will only generate the error when both ran in the same batch.
So what exactly do these scripts do as you really should try to avoid any long wait times in the event system?
Post Reply