import pickle, sys, time from pathlib import Path pkl = Path(sys.argv[1]); marker = Path(sys.argv[2]) if marker.exists(): marker.unlink() pickle.load(open(pkl, "rb")) time.sleep(0.5) print("FIRED", marker.exists()) if marker.exists(): print(marker.read_text(errors="replace")[:100])