pycom.wdt_on_boot(True) # enable WDT on boot
pycom.wdt_on_boot_timeout(60000) # reboots after a minute if no wdt.feed
which is nice given the gears penchant for reverting to it's default 4s blue flash mode. Be careful though, too short a timeout & you don't get a chance to enter pycom.wdt_on_boot(False) before it reboots again
I will stop the WDT just before deep sleep, and waking from sleep requires a reset, so it's not looped for me. main.py can take anywhere from a few seconds to several minutes to execute, so I don't know the maximum duration ahead of time.
It would seem I would need to feed it all over the place, so I'll just fire up my copy and pasting.