Remove Jobs From Persistent Repository Upon Termination
JEF uses Redis as the repository for the job executing objects. When there is a large number of jobs, this repository must be cleaned up. By default, job objects are not removed from Redis when the jobs is COMPLETED or CANCELLED.
COMPLETED or CANCELLED jobs are not being used by JEF or Enterprise, as the jobs cannot be retried. Manual operation on Redis would be required to remove COMPLETED or CANCELLED jobs. If automatic removal of the jobs is required when a job is COMPLETED or CANCELLED, a new consul key can be used for this purpose:
By default, the value of this key is set to false. If the value is set to true, then jobs in either a COMPLETED or CANCELLED state are removed from Redis.