qiskit_serverless.serializers.get_compute_profile¶
- get_compute_profile()[source]¶
Returns the compute profile the running job resolved to.
Set by the gateway at job submission, this is the profile the function size mapped to, which lets a function check that the chosen size mapped to the expected profile. It is always set for Fleets jobs.
This is the requested profile, i.e. the resource allocation the job runs with. It is not the physical Code Engine worker node, which may be larger: Code Engine can serve the requested allocation from a bigger node, and the profile is the allocation the job is accounted for, not the node’s size.
- Return type:
str- Returns:
The compute profile (e.g.
"24x120x1a100p"). Empty when profiles do not apply, i.e. a non-Fleets (Ray) job.