Package de.dlr.proseo.planner.util
Klasse JobUtil
java.lang.Object
de.dlr.proseo.planner.util.JobUtil
Handle jobs
- Autor:
- Ernst Melchinger
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCancel a job and its job steps.checkFinish
(Long jobId) Check whether a job and its job steps are finished.Delete satisfied product queries of its job steps.Delete a job and its job steps.deleteForced
(Job job) Delete a job and its job steps except it is running.Resume a job and its job steps.Retry a job and its job steps.void
setHasFailedJobSteps
(Job job, Boolean failed) Set the job to failedStart a job and its job steps.Suspend the job and its job steps.
-
Konstruktordetails
-
JobUtil
public JobUtil()
-
-
Methodendetails
-
suspend
@Transactional(isolation=REPEATABLE_READ) public PlannerResultMessage suspend(Job job, Boolean force) Suspend the job and its job steps. If force is true, running Kubernetes jobs of are killed.- Parameter:
job
- The jobforce
-- Gibt zurück:
- Result message
-
close
Delete satisfied product queries of its job steps.- Parameter:
job
- The job- Gibt zurück:
- Result message
-
retry
Retry a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- Result message
-
cancel
Cancel a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- Result message
-
resume
Resume a job and its job steps.- Parameter:
jobId
- The job id- Gibt zurück:
- Result message
-
startJob
Start a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- true after success
-
delete
Delete a job and its job steps.- Parameter:
job
- The job- Gibt zurück:
- true after success
-
deleteForced
Delete a job and its job steps except it is running.- Parameter:
job
- The job- Gibt zurück:
- true after success
-
checkFinish
Check whether a job and its job steps are finished.- Parameter:
job
- The job- Gibt zurück:
- true after success
-
setHasFailedJobSteps
Set the job to failed- Parameter:
job
- The jobfailed
-
-