How to increase script execution timeout

How to increase script execution timeout?

When creating a certificate from a script, an error appears “action timed out - try again, if error continues contact MikroTik support and a supout file (13)”

In this case, the processor is loaded for some time and a certificate is created.
I have to re-run the script, disabling executed lines.

How can this problem be solved?

This is not the smartest way to deal with it but at least it works enough for the script to continue. You may need to increase the delay depending on what device you have.

/certificate add name=hello copy-from=client-template common-name=hello@somewhere.example

:do {
  /certificate sign [find name=hello] ca=CA name=hello
} on-error={ :log warning "waiting for cert to generate"; :delay 120 }

A smarter way would be a delay inside a loop that checks if the cert is signed yet.