MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / get_job_id

Function get_job_id

crates/pyhq/python/hyperqueue/job.py:176–182  ·  view source on GitHub ↗
(job: HasJobId)

Source from the content-addressed store, hash-verified

174
175
176def get_job_id(job: HasJobId) -> JobId:
177 if isinstance(job, SubmittedJob):
178 return job.id
179 elif isinstance(job, (JobId, int)):
180 return job
181 else:
182 raise ValueError(f"Invalid value of type {type(job)} passed to `get_job_id`")
183
184
185def merge_envs(default: EnvType, env: Optional[EnvType]) -> EnvType:

Callers 2

submit_scriptFunction · 0.85
forgetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected