shortcuts automation failed: took too long to run
I have a shortcuts automation that plays a song from my music library when the battery level is 100%.
I want to be notified so I can unplug the charger. See settings below.
The automation is working, but it keeps generating an error about 5 minutes after it's done.
I usually stop the song from playing a few seconds after it starts.
"automation failed: took too long to run"
Is this a bug? I think this was also happening in iOS 15.
I already tried deleting and recreating the shortcut which didn't fix it.
iPhone 12
iOS 16.0.2