Automatically cancel running slicing jobs targeting the same output file if a new slicing request is received

This way there won't be two concurrent jobs trying to slice to the same file, which would practically render the cpu cycles from any slicing jobs than the final one wasted. Also adds a new event "SlicingCancelled" that will be sent in these cases.
This commit is contained in:
Gina Häußge committed 2014-10-20 13:40:04 +02:00
1 parent 606efd3da1
commit 44109f9d8f
7 files changed
+83 -7

No files matched your search

+3
View File
@@ -316,6 +316,9 @@ Issue a file command
be overridden with the supplied value. Use this if you want to specify things that change often like a different
temperature, filament diameter or infill percentage. Profile keys are slicer specific.
If consecutive slicing calls are made targeting the same GCODE filename (that also holds true if the default is used),
the slicing job already running in the background will be cancelled before the new one is started.
Upon success, a status code of :http:statuscode:`204` and an empty body is returned, unless specified otherwise.
**Example Select Request**