File size: 297 Bytes
6fd3740 | 1 2 3 4 5 6 7 8 9 10 11 12 | """ActionMan: decision encoder + masked-diffusion argument filler."""
import os
import time
def beat():
"""Touch $HEARTBEAT (if set) so the box watchdog knows we're alive."""
p = os.environ.get("HEARTBEAT")
if p:
with open(p, "w") as f:
f.write(str(time.time()))
|