SuccessfulExit not working

I have made a very simple programme that checks the minutes in golang and converted it to an app. When the minutes are even it exits with code of 0 and when odd code of 1. I have made a plist that I want it to keep alive when the code is 1. The plist is provided:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0"> <dict> <key>KeepAlive</key> <dict> <key>SuccessfulExit</key> <array> <integer>0</integer> </array> <key>AfterInitialDemand</key> <true/> </dict> <key>Label</key> <string>com.myapp.socket.service.testing</string> <key>Program</key> <string>/Applications/Service Testing.app/Contents/MacOS/service-testing</string> <key>RunAtLoad</key> <true/> <key>LSUIElement</key> <true/> </dict> </plist>

The programme is not being kept alive with SuccesfulExit false or array intiger 0. Is this a common problem, chip issue or system?? (I have the M1 chip and venturaOS 13)

Thank you for any help you can provide

SuccessfulExit not working
 
 
Q