Piston Time Keeps Resetting


#1

1) Give a description of the problem
The timer keeps resetting each time the Temp updates.

2) What is the expected behaviour?
Get notification in a timely manor

3) What is happening/not happening?
Each time the Temp changes by as little as .1 degree the piston resets its timer to send the PUSH message

**4) Post a Green Snapshot of the piston![image|45x37]

(upload://xK8WwMCzoDkDrcB1Jf27yjtZ9bq.png)**

5) Attach logs after turning logging level to Full
3/22/2022, 5:18:28 PM +794ms
+12ms ╔Received event [Kitchen Fridge].temperature = 58.9 with a delay of 39ms, canQueue: true, calledMyself: false
+29ms ║RunTime initialize > 28 LockT > 1ms > r9T > 5ms > pistonT > 1ms (first state access 22 14 14)
+32ms ║Runtime (6112 bytes) initialized in 5ms (v0.3.114.20220307_HE)
+34ms ║╔Execution stage started
+49ms ║║Comparison (decimal) 58.9 remains_above (decimal) 46.0 = true (1ms)
+51ms ║║Condition #2 evaluated true (13ms)
+54ms ║║Condition group #1 evaluated true (state did not change) (16ms)
+59ms ║║Cancelling statement #3’s schedules…3/null
+64ms ║║Executed virtual command wait (0ms)
+67ms ║║Requesting a wake up for Tue, Mar 22 2022 @ 6:48:28 PM EDT (in 5400000ms) statement: 3 start/task: 4
+87ms ║╚Execution stage complete. (53ms)
+137ms ║Setting up scheduled job for Tue, Mar 22 2022 @ 6:48:28 PM EDT (in 5400006ms)
+141ms ╚Event processed successfully (129ms)
3/22/2022, 5:18:06 PM +787ms
+19ms ╔Received event [Kitchen Fridge].temperature = 59.2 with a delay of 45ms, canQueue: true, calledMyself: false
+35ms ║RunTime initialize > 34 LockT > 0ms > r9T > 3ms > pistonT > 1ms (first state access 31 20 14)
+38ms ║Runtime (6106 bytes) initialized in 3ms (v0.3.114.20220307_HE)
+40ms ║╔Execution stage started
+48ms ║║Comparison (decimal) 59.2 remains_above (decimal) 46.0 = true (2ms)
+51ms ║║Condition #2 evaluated true (8ms)
+54ms ║║Condition group #1 evaluated true (state did not change) (10ms)
+57ms ║║Cancelling statement #3’s schedules…3/null
+64ms ║║Executed virtual command wait (1ms)
+67ms ║║Requesting a wake up for Tue, Mar 22 2022 @ 6:48:06 PM EDT (in 5400000ms) statement: 3 start/task: 4
+83ms ║╚Execution stage complete. (43ms)
+147ms ║Setting up scheduled job for Tue, Mar 22 2022 @ 6:48:06 PM EDT (in 5400010ms)
+152ms ╚Event processed successfully (132ms)
3/22/2022, 5:17:33 PM +108ms
+4ms ╔Received event [Kitchen Fridge].temperature = 60.0 with a delay of 32ms, canQueue: true, calledMyself: false
+33ms ║RunTime initialize > 32 LockT > 1ms > r9T > 3ms > pistonT > 1ms (first state access 28 10 22)
+36ms ║Runtime (5975 bytes) initialized in 3ms (v0.3.114.20220307_HE)
+38ms ║╔Execution stage started
+47ms ║║Comparison (decimal) 60.0 remains_above (decimal) 46.0 = true (1ms)
+49ms ║║Condition #2 evaluated true (7ms)
+51ms ║║Condition group #1 evaluated true (state did not change) (10ms)
+54ms ║║Cancelling statement #3’s schedules…3/null
+60ms ║║Executed virtual command wait (1ms)
+63ms ║║Requesting a wake up for Tue, Mar 22 2022 @ 6:47:33 PM EDT (in 5400000ms) statement: 3 start/task: 4
+121ms ║╚Execution stage complete. (83ms)
+191ms ║Setting up scheduled job for Tue, Mar 22 2022 @ 6:47:33 PM EDT (in 5399969ms)
+196ms ╚Event processed successfully (192ms)
3/22/2022, 5:17:05 PM +41ms
+9ms ╔Received event [Kitchen Fridge].temperature = 60.4 with a delay of 113ms, canQueue: true, calledMyself: false
+35ms ║RunTime initialize > 34 LockT > 1ms > r9T > 15ms > pistonT > 1ms (first state access 18 10 24)
+64ms ║Runtime (5974 bytes) initialized in 15ms (v0.3.114.20220307_HE)
+66ms ║╔Execution stage started
+96ms ║║Comparison (decimal) 60.4 remains_above (decimal) 46.0 = true (1ms)
+98ms ║║Condition #2 evaluated true (18ms)
+101ms ║║Condition group #1 evaluated true (state did not change) (20ms)
+105ms ║║Cancelling statement #3’s schedules…3/null


#2

See

https://wiki.webcore.co/Task_Execution_Policy


#3

Thank you sir, I did a couple of searches and wasn’t turning up any useful info. I may have been using the wrong terminology when searching. It’s fixed now and working like it should. Thank you again.