Currently the printer/stop endpoint stops all fetching processes and clears the temp files.
As a precaution I'd like to also execute this when printer/print is called and before a new print-fetch process is started in printer/fetch. This makes sure there are no edge cases where it can be running in the background when it's not wanted.
It might be nice to put this into a reusable function that combines all stop fetching logic.
Currently the
printer/stop
endpoint stops all fetching processes and clears the temp files. As a precaution I'd like to also execute this whenprinter/print
is called and before a newprint-fetch
process is started inprinter/fetch
. This makes sure there are no edge cases where it can be running in the background when it's not wanted.It might be nice to put this into a reusable function that combines all stop fetching logic.