Defines the attributes for starting a provision. An instance of this class is passed to self.provision(). As shown in Examples, defining a provision to reserve a provisioned resource "nightly" for a user is an instance of when this function might be used: spec = ProvisionSpec() spec.setReserveForUser('nightly') self.provision(spec)
ProvisionSpec(): Construct a default ProvisionSpec.
Set the job ID to reserve the provisioned resource for. Default is the job initiating the provision.
Set the user ID to reserve the provisioned resource for. Default is the user of the initiating job.
Set idle timeout for provisioned resource. Default is value of resource.provisioned.timeout.
Set a priority for this provision using supplied string. Default is the user's priority.
Set a priority for this provision using supplied integer constant. Default is the user's priority.
Set a policy to use for reserving the provisioned resource. Default is no policy.
Set a policy to use for reserving the provisioned resource. Default is no policy.
Set a constraint to use for reserving the provisioned resource. Default is no constraint.
Set the host to provision the resource on. Default is to provision on the affiliated host.
Set the repository to provision the resource on. Default is to use the same repository as source.
Set whether to wait or assign the host immediately. Default is false.
Example of using ProvisionSpec for defining a provision to reserve a provisioned resource for user “nightly”:
spec = ProvisionSpec() spec.setReserveForUser('nightly') self.provision(spec)
Javadoc: ProvisionSpec