nvflare.apis.utils.job_submit_token module
- canonical_job_content_hash(job_content: str | bytes, exclude_names: Iterable[str] | None = None) str[source]
Hash the canonical submitted job content used for submit-token retry validation.
The caller must provide the job content root. Directory input is hashed exactly relative to the provided directory. Zip input may contain one wrapper directory around the job content; that wrapper is stripped so a normal
zip -r job.zip job/archive hashes the same as submittingjob/directly. Passing the parent of a job directory is not equivalent to passing the job directory itself.