hpcflow.sdk.monitoring.status.scheduler_ref#

hpcflow.sdk.monitoring.status.scheduler_ref(job)#

Convert a saved reference to the adapter API and guard against reused PIDs.

Return None when a direct process has exited or its PID belongs to a different process. Incomplete references raise ValueError rather than querying or cancelling an unrelated process.

Parameters:

job (JobRecord)

Return type:

str | tuple[int, list[str]] | None