Read a file (if any) and parse into a set of core-task info items.
Source code in fractal_server/cli/_aux_sync_core_tasks.py
| def _read_set_from_file(path: Path | None) -> _SetThreeStringsTuple:
"""
Read a file (if any) and parse into a set of core-task info items.
"""
json_data = path.read_text() if path else "[]"
return _CoreInfoSet.model_validate_json(json_data).root
|