In my full sandbox, I have a batchable that reschedules itself in the finish() method. This job has been running for 2+ years; rescheduling itself many times a day
On August 1 at 2231h Pacific, Setup | Apex Jobs reported:
First error: java.lang.IllegalStateException: Phoenix driver closed because server is shutting down
So, I know there's a certain pride in collecting Seven Dwarfs errors but this is a new one - to the batchable it acts like an uncaught exception
Sadly, this batchable did not implement Database.raisesPlatformEvents so the error took a few days to detect.
Not sure there is an answer to this except to implement Database.raisesPlatformEvents but for those reading this - another thing to worry about, albeit unlikely, in building robust systems.
Database.raisesPlatformEventsthen yes, I did implement. – cropredy Jan 28 '23 at 00:02Setup | Apex Jobs; what was relevant to me was that I built a framework where the job could be auto-rescheduled in the event of this error recurring – cropredy Jan 28 '23 at 00:06