Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watched folders for compress/optimize with a task queue #17

Closed
gunnsth opened this issue Jan 25, 2019 · 0 comments
Closed

Watched folders for compress/optimize with a task queue #17

gunnsth opened this issue Jan 25, 2019 · 0 comments

Comments

@gunnsth
Copy link
Contributor

gunnsth commented Jan 25, 2019

Idea:

unicli optimize --watch /folder --out /path/to/outputs

watches /folder for input files, for each new PDF that is seen, puts compress task info on a task queue.
Runs a task queue with 4 goroutines (configurable number) which processes each new task and writes the optimized PDF to the output folder.

Upon starting should process the PDF files that are in the folder at the time of starting.

Options

  • Keep a copy of the original (write as filename.orig.pdf in the same output folder)
  • Error handling. If there is an error, write to an error log, possibly create a filename_error.txt in the output folder.
@gunnsth gunnsth closed this as completed Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant