pyslk.get_recall_job_id#
- pyslk.get_recall_job_id(pid: int | str, return_last_match: bool = True, slk_log_file: str | Path = '/root/.slk/slk-cli.log') int | None #
- Parameters:
pid (int or str) – pid of a slk call
return_last_match (bool) – if multiple slk runs hat the same PID and returned a job id, take the last job id; else, take the first one
slk_log_file (str or path-like object) – path of the slk-cli log file from which this command should read
- Returns:
a valid job id; if no job id was printed to the slk-cli log, print None
- Return type:
int or None