Class JobCommandService

java.lang.Object
com.bluebell.greenhouse.radicle.services.job.JobCommandService

@Service public class JobCommandService extends Object
Operator commands for retrying and cooperatively cancelling durable work.
Version:
3.0.6
Author:
Stephen Prizio
  • Constructor Details

    • JobCommandService

      public JobCommandService()
  • Method Details

    • retry

      public JobSubmission retry(String jobId, String actor, String reason)
      Creates a linked manual retry.
      Parameters:
      jobId - selected public job identifier
      actor - initiating actor
      reason - retry reason
      Returns:
      new attempt submission
    • cancel

      @Transactional public JobStatus cancel(String jobId)
      Requests cancellation and returns the resulting lifecycle state.
      Parameters:
      jobId - public job identifier
      Returns:
      resulting state