You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you copy this code onto a plugin with a different name, periodics stop working altogether. Even just adding a new instance of the previous plugin instead of creating a separate plugin also triggers this issue. Note that not just the 2nd instance/plugin doesn't work when added, the first instance/plugin also stops working.
The text was updated successfully, but these errors were encountered:
Through trial and error, I've discovered this issue only seems to occur if you have multiple plugins that happen to utilize the exact same periodic time period.
Ex:
If you have Plugin A with:
import gremlin
gremlin.util.log("Starting Script 1")
@gremlin.input_devices.periodic(1)
def testing_loop_1():
gremlin.util.log("Running Test on Script 1")
And Plugin B with:
import gremlin
gremlin.util.log("Starting Script 2")
@gremlin.input_devices.periodic(1)
def testing_loop_2():
gremlin.util.log("Running Test on Script 2")
But if you update plugin A to utilize a periodic time of 1.0001 instead of 1, it seems to work OK
2024-03-04 21:37:59 Starting Script 1
2024-03-04 21:37:59 Starting Script 2
2024-03-04 21:38:00 Running Test on Script 2
2024-03-04 21:38:00 Running Test on Script 1
2024-03-04 21:38:01 Running Test on Script 2
2024-03-04 21:38:01 Running Test on Script 1
2024-03-04 21:38:02 Running Test on Script 2
2024-03-04 21:38:02 Running Test on Script 1
2024-03-04 21:38:03 Running Test on Script 2
2024-03-04 21:38:03 Running Test on Script 1
2024-03-04 21:38:04 Running Test on Script 2
2024-03-04 21:38:04 Running Test on Script 1
...
Using the following plugin code works if this is the only plugin using periodics:
Once you copy this code onto a plugin with a different name, periodics stop working altogether. Even just adding a new instance of the previous plugin instead of creating a separate plugin also triggers this issue. Note that not just the 2nd instance/plugin doesn't work when added, the first instance/plugin also stops working.
The text was updated successfully, but these errors were encountered: