Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have an automation that I've been adding to that basically looks at a Measure value prior to reload, then does a reload, then compares that original value to the new value, and if the value has grown it will send a message to Slack.
I haven't been able to get it to compare successfully, but my logic seems correct.
The original (pre-Reload) value is always available in the output, but the after reload value isn't read fully and sometimes it errors out. What do I need to do? Add in a sleep block before/after reading the value again?
Here's the layout:
The condition is:
The history usually looks like this with the argument 2 supposed to reflect the after reloaded value:
Sometimes it errors out with "error: Client read timeout".
Though most times the condition is not met because the new value isn't retrieved. It says it's NULL but that is impossible as it's a growing value. Hints on how to troubleshoot this?
On the Chronological view, I can see that the block for Get Measure Value doesn't work as expected. It just returns some ID instead of the value. Get Measure Value 3 (and the original 4) do work though... Hmmm....
I am not able to pinpoint the issue here
In order to investigate further, Could you please share the JSON export of your automation (right-click in the editor - download workspace)?
Thanks!
Afeefa TK
Hi all,
First some background info on the blocks:
Performing a reload will trigger a data refresh in all active sessions. I believe that the sessions can not communicate with the engine while data is refreshed.
The following steps explain how the session is handled in this automation:
Could you verify the above by adding a Sleep block after the Do Reload block? You might need to adjust the time a bit to get it right.
Also, those Get Measure Value blocks don't return a random ID, they return nothing and have no output. What you see under the blocks preview in the chronological view for those blocks is the app id. I'll see if we can make a change to this Preview field to show nothing when there's no output.
Kind regards,
Emile