Unfortunately, this is from a legacy system that we are slowly modernizing, so modifying the SP isn't possible (hence my caveat in the original post).
You make a good point though, I should try running this completely from a Gateway context to make sure none of the built in timeouts or restrictions from the designer/console/etc. are coming into play.
Is this something that queries data from tables or inserts data into the database?
If it queries you will probably need to do a sendMessage both ways, one to the gateway where the payload has the target client node that does the stored procedure, and another from the gateway to the target client node with the data after it is done.
From what I read, the OP doesn't mention they need any results from the stored procedure - if that is the case and it just needs to run once a day, why not move it out of the Ignition space and just use a SQL agent job or something similar? That would be very easy to manage and not interfere with Ignition...
Ok, so I set it up to call system.db.runPrepUpdate() on the stored procedure from a scheduled gateway event, and at the 60s mark it timed out and reset the DB connection. This was the exception returned:
java.sql.SQLRecoverableException: Io exception: Socket read timed out
I had hoped running it solely in the gateway context would allow it to go longer than 60s.
I don't need any results from the stored procedure.
I can't modify the stored procedure as it's part of a legacy system that's being converted.