@Validated
public interface JobResolverService
Modifier and Type | Method and Description |
---|---|
ResolvedJob |
resolveJob(java.lang.String id)
Given the id of a job that was successfully submitted to the system this API will attempt to resolve all the
concrete details (cluster, command, resources, etc) needed for the system to actually launch the job.
|
ResolvedJob |
resolveJob(java.lang.String id,
@Valid JobRequest jobRequest,
boolean apiJob)
Given a job request resolve all the details needed to run a job.
|
@Nonnull ResolvedJob resolveJob(java.lang.String id) throws GenieJobResolutionException, GenieJobResolutionRuntimeException
JobStatus.RESOLVED
.id
- The id of the job to resolve. The job must exist and its status must return true from
JobStatus#isResolvable()
ResolvedJob
instance containing all the concrete information needed to execute the jobGenieJobResolutionException
- When the job cannot resolved due to unsatisfiable constraintsGenieJobResolutionRuntimeException
- When the job fails to resolve due to a runtime error.@Nonnull ResolvedJob resolveJob(java.lang.String id, @Valid @Valid JobRequest jobRequest, boolean apiJob) throws GenieJobResolutionException, GenieJobResolutionRuntimeException
id
- The id of the jobjobRequest
- The job request containing all details a user wants to have for their jobapiJob
- true if this job was submitted via the REST API. false otherwise.ResolvedJob
instanceGenieJobResolutionException
- When the job cannot resolved due to unsatisfiable constraintsGenieJobResolutionRuntimeException
- When the job fails to resolve due to a runtime error.