Interface JobPlan
- All Known Implementing Classes:
ChunkedProcessPlan,StepsJobPlan
public interface JobPlan
How a job's work is split into chunks and how one chunk runs. Plans are
generic: they run the process's own steps, never a rewrite of the process.
-
Method Summary
Modifier and TypeMethodDescriptionplanChunks(QRecord job) Plan the chunks for a newly launched job (runs as the launching user).runChunk(ChunkContext context) Run one chunk, as the job's user.
-
Method Details
-
planChunks
Plan the chunks for a newly launched job (runs as the launching user). Return chunk records with seq and rangeJson (jobId is set by the caller).- Throws:
QException
-
runChunk
Run one chunk, as the job's user. Call context.checkpoint and context.check at safe points.- Throws:
Exception
-