startJobByType method

  1. @override
Future<JobV1> startJobByType (
  1. String correlationId,
  2. String jobType,
  3. num timeout,
  4. num maxRetries
)
override

Start fist free job by type

  • correlationId (optional) transaction jobId to trace execution through call chain.
  • jobType a jobType of job to be retrieved.
  • timeout a timeout for set locked_until time for job.
  • maxRetries a maxRetries for get item with retries less than them. Return Future that receives job or error.