add support for loading *Handler classes into the Awilix container
Awiilix container is allowed to have a single instance of each type of handler
enable custom batch job types/handlers from plugins by identifying service using BatchJob type
create a common interface that batch job handlers implement:
add support for loading *Handler classes into the Awilix container
Awiilix container is allowed to have a single instance of each type of handler
enable custom batch job types/handlers from plugins by identifying service using BatchJob type
create a common interface that batch job handlers implement:
interface {
/*
Used in the API controller to verify that the context param is valid
*/
validateContext()
/*
Method does the actual processing of the job. Should report back on the progress of the operation.
*/
processJob()
/*
Method performs the completion of the job. Will not be run if processJob has already moved the BatchJob to a complete status.
*/
completeJob()
add support for loading *Handler classes into the Awilix container Awiilix container is allowed to have a single instance of each type of handler enable custom batch job types/handlers from plugins by identifying service using BatchJob type create a common interface that batch job handlers implement: interface {
/*
Used in the API controller to verify that the
context
param is valid */ validateContext()/*
Method does the actual processing of the job. Should report back on the progress of the operation. */ processJob()
/*
processJob
has already moved the BatchJob to acomplete
status. */ completeJob()}