Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

[Feature] Configurability for MaxJobs and PreserveJobHistory #210

Open
olifre opened this issue Nov 20, 2019 · 3 comments
Open

[Feature] Configurability for MaxJobs and PreserveJobHistory #210

olifre opened this issue Nov 20, 2019 · 3 comments

Comments

@olifre
Copy link

olifre commented Nov 20, 2019

The default settings for these are 500 jobs and PreserveJobHistory is true.
This means that up to 500 job files will be kept in the spool directory. For large jobs, this easily adds up to GB of data.

It would be nice to be able to configure MaxJobs and / or PreserveJobHistory with this module to limit hefty space usage in case full history is not needed.

@arlt
Copy link

arlt commented Dec 6, 2019

This is really important in my opinion - but:

  • PreserveJobFiles: Specifies whether or not to preserve job files after they are printed.
  • PreserveJobHistory: Specifies whether or not to preserve the job history after they are printed.
  • MaxJobs: Specifies the maximum number of simultaneous jobs to support.

So i think you (and me) want to configure PreserveJobFiles. I don't see an option in the man cupsd.conf to limit the number of preserved print jobs. But it seems to work (apple/cups#3143):

 PreserveJobHistory On
 PreserveJobHistory Off
+PreserveJobHistory 1w
+PreserveJobHistory 7d
+PreserveJobHistory 168h
+PreserveJobHistory 10080m
+PreserveJobHistory 604800

I tested with CUPS 1.6.3 and PreserveJobFiles 1m (minute) and PreserveJobHistory 7d - the jobs (not the history) where cleaned up after a minute and the reprint-button disappeared.

So i vote for two options:

  • PreserveJobFiles
  • PreserveJobHistory

Allowed values: (On|Yes|Off|NO|[1-9][0-9]*[wdhm]?)

@olifre
Copy link
Author

olifre commented Sep 2, 2020

I join your vote, thanks for checking out the correct meaning of these parameters ;-).

@arlt
Copy link

arlt commented Sep 7, 2020

maybe you should correct the title: PreserveJobFiles instead of MaxJobs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants