Queued Script Calls Action that Sometimes Never Finishes

I have a queued script that calls an action; due to unknown reasons, the action never seems to finish (the action sends some request via the web and might never hear back, or the request was rejected, or perhaps my internet was down the moment the request was sent).

When this happens, HA seems to freeze. I am assuming the main thread is stopped. Or maybe it is related to the script being in queued mode.

I am wondering if there is a way to just end the script after a certain timeout. I have found wait_template and set continue on timeout to false, but not sure if this will do the desired behavior

Could we see the script please?

1 Like