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 netdome) 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_CANCELED
: Time interval after which a job with theCanceled
status is deleted from the database -
JOB_LIFETIME_ERROR
: Time interval after which a job with theError
status is deleted from the databaseHint -
del24h.dat
andDEL24H
JOB_LIFETIME_ERROR
corresponds todel24h.dat
and theDEL24H
parameter in PLOSSYS netdome. -
JOB_LIFETIME_PAUSED
: Time interval after which a job with thePaused
status is deleted from the database -
JOB_LIFETIME_PREPROCESSING
: Time interval after which an order with the statusPreprocessing
is deleted from the database -
JOB_LIFETIME_PROCESSED
: Time interval after which a job with theProcessed
status is deleted from the database -
JOB_LIFETIME_PROCESSING
: Time interval after which a job with the statusProcessing
is 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 statusWaitpreprocessing
is 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_CANCELED
,JOB_LIFETIME_PROCESSED
: after 24 hours -
JOB_LIFETIME_ERROR
,JOB_LIFETIME_PAUSED
,JOB_LIFETIME_WAITING_PICKUP
: after 3 days -
JOB_LIFETIME_PREPROCESSING
,JOB_LIFETIME_PROCESSING
,JOB_LIFETIME_WAITING
,JOB_LIFETIME_WAITPREPROCESSING
: never -
SWEEP_AGE
: after 10 minutes
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.