def METHOD_NAME(self):
    names = set(job.name for job in self.jobs)
    for f in logs.iterdir():
        stem, suffix = f.name.rsplit(".", 1)
        if suffix == "sid":
            if stem not in names:
                sid = get_sid(stem)
                if sid is not None:
                    print(f"GCing {stem} / {sid}")
                    cancel(sid)
                    f.unlink()