Resume: recreate the run pipeline copy in place

This commit is contained in:
Archipelago 2026-11-13 19:21:14 +03:00
parent e921e917c4
commit f8a7032841

View file

@ -107,7 +107,7 @@ def main():
observer = monitor.Monitor(base, stamp)
previous = json.loads((parent / 'latest.json').read_text()) if (parent / 'latest.json').exists() else None
source = Path(__file__).resolve().parent
shutil.copytree(source, run / 'pipeline', ignore=shutil.ignore_patterns('__pycache__'))
shutil.copytree(source, run / 'pipeline', dirs_exist_ok=True, ignore=shutil.ignore_patterns('__pycache__'))
atomic(run / 'config.json', config)
worker = config['worker']
remote_root = config['worker_root'] + '/build/release-cycle/' + stamp