Kantu stops running macro intermittently when window is minimized


#1

I have a macro that’s designed to run infinitely until it times out, which is kept to a big number (99999999999), which would be few years from now.

I am accessing 2 websites using this macro in infinite while loop. One website is single page (no interaction) and on other web site, I am performing a login and then few more page navigation.

Issue is intermittently it stops running macro and logs show "macro competed in xx seconds). Also, I notice it pauses macro execution, when window is minimized or not on focus. I am running kantu on a remote machine, which is projected on a TV screen. Also noticed, that when this issue happens frequently, next run fails very quickly in few seconds unless I restart browser and run macro again.

Please let me know, if there’s a way to work around with this tool.

Browser: Mozilla Firefox 62.0.3
Kantu version: 3.1.9
OS: red hat enterprise linux server 7.4 (maipo) fedora

Logs from macro execution:
[status]

    Playing macro Portal_Login_v6

    [info]

    Executing:  | store | fast | !replayspeed | 

    [info]

    Executing:  | store | true | !ErrorIgnore | 

    [info]

    Executing:  | open | https://www.google.com |  | 

    [error][ignored]

    lost background heart beat when running command

    [info]

    Executing:  | while | 1 == 1 |  | 

    [error][ignored]

    lost background heart beat when running command

    [info]

    Executing:  |  |  |  | 

    [error][ignored]

    lost background heart beat when running command

    [info]

    Macro completed (Runtime 133.82s)

Script Stops Working After Running A While
#2

Interesting… so with Kantu in front all works fine?


#3

I am not very sure, if its due to long running macro or due to kantu window not in focus.
As I mentioned, its running from a remote box to be projected on TV. So, plan is to make it run as long as it can support. But for some reason, at some random interval kantu macro execution stops.

But last few lines of logs are always the same, when it stops.

Executing:  | while | 1 == 1 |  |
[error][ignored]
lost background heart beat when running command
[info]
Executing:  |  |  |  | 
[error][ignored]
lost background heart beat when running command
[info]
Macro completed (Runtime 133.82s)