Max one outline job per document at a time
|Reported by:||tsee||Owned by:|
The Outline should make sure that a maximum of one Outline Task is running in the background for a given document at the same time. Otherwise, for long documents, it may trash the Task queue and grind the computer to a halt.
This isn't very easy but not ridiculously hard either. Note that you can't stop a running task.
Two ways to do this. Either
a) Implement an optional, different queuing scheme in which only the newest copy of a job type (with an additional identifier for the document it's running for!) will be kept in the queue. This would be the general solution and would require significant extensions to the TaskManager?.
b) Implement a sort of workaround in the Outline code itself. Make it only dispatch new Outline Tasks if there is none currently running. Note that too simple-minded approaches can easily yield bugs like the outline view not updating correctly.