Detect if report generates or not from tag change event

In my project I have a gateway tag change event script that calls a client tag change event script to generate reports. I want to add a check that these reports actually generate as i've been having some not generate.

Basic logic:

tag 1 change -> gateway script sets tag 2 -> client script generates report and resets tag 2.

Is there a way to detect if tag 2 is not reset in a given time? Im not sure the best way to do this.

thankyou!

Why are you using a client tag change event? Reports run in the gateway, even if called from a client context.

when i generate the report i am also saving a pdf of the report to the client.

And if the client isn't running? Or is stuck on a modal popup?

I recommend you run the report from the gateway, and store it in the gateway. Use a message handler called from the client, at the client's convenience, to retrieve and save the most recent report.