Delete the Jobs Automatically¶
The seal-housekeeper service is responsible for deleting jobs automatically. It regularly searches the database for jobs in a specific state and triggers the removal if required.
Hint - AFTOUT and job-specific intervals
In PLOSSYS 5, jobs cannot be deleted right after printing (corresponding to AFTOUT in PLOSSYS 4) and the deleting intervals cannot be set specific for a job at the moment.
With the following keys, you customize the behavior of the seal-housekeeper service:
-
HOUSEKEEPER_INTERVAL: Time interval after which the service is restarted -
JOB_LIFETIME_ACCOUNTING: Time interval after which a job with theAccountingstatus is deleted from the database -
JOB_LIFETIME_CANCELED: Time interval after which a job with theCanceledstatus is deleted from the database -
JOB_LIFETIME_ERROR: Time interval after which a job with theErrorstatus is deleted from the databaseHint -
del24h.datandDEL24HJOB_LIFETIME_ERRORcorresponds todel24h.datand theDEL24Hparameter in PLOSSYS 4. -
JOB_LIFETIME_PAUSED: Time interval after which a job with thePausedstatus is deleted from the database -
JOB_LIFETIME_PREPROCESSING: Time interval after which an order with the statusPreprocessingis deleted from the database -
JOB_LIFETIME_PROCESSED: Time interval after which a job with theProcessedstatus is deleted from the database -
JOB_LIFETIME_PROCESSING: Time interval after which a job with the statusProcessingis deleted from the database -
JOB_LIFETIME_PROCESSINGREMOTE: Time interval after which a job with the statusProcessingremoteis deleted from the database -
JOB_LIFETIME_WAITING: Time interval after which a job waiting in a non-pickup queue is deleted from the database -
JOB_LIFETIME_WAITING_PICKUP: Time interval after which a job waiting in a pickup queue is deleted from the database -
JOB_LIFETIME_WAITPREPROCESSING: Time interval after which a job with the statusWaitpreprocessingis deleted from the database -
SWEEP_AGE: Time interval after which an incomplete job is regarded as incorrect and deleted from the database
Hint - defaults
The following defaults apply:
-
HOUSEKEEPER_INTERVAL: 1 hour -
JOB_LIFETIME_PROCESSED: 1 hour -
JOB_LIFETIME_CANCELED: after 24 hours -
JOB_LIFETIME_ERROR,JOB_LIFETIME_PAUSED,JOB_LIFETIME_WAITING_PICKUP: after 3 days -
JOB_LIFETIME_ACCOUNTING,JOB_LIFETIME_PREPROCESSING,JOB_LIFETIME_PROCESSING,JOB_LIFETIME_WAITING,JOB_LIFETIME_WAITPREPROCESSING: never -
SWEEP_AGE: Maximum of all otherJOB_LIFETIME_*values for theseal-housekeeperservice; by default, after 3 days.
Example - setting JOB_LIFETIME_ERROR via PLOSSYS CLI
plossys config set JOB_LIFETIME_ERROR 2d --service housekeeper
Hint - no restart required
After changing a key, you do not have to restart anything due to the service will be restarted automatically whenever the configuration is changed.