### Bug description

This was an issue we discovered on RStudio Cloud but would apply to any RStudio Workbench installation.

Once a user renders a quarto document, the background job that starts to support the preview will run until killed. This will prevent the user's workbench session from going idle.

This was observed on RStudio Workbench version 2022.07.1-554.pro3 with Quarto version 1.1.179 on Ubuntu Focal.

One thought we had was a way to configure a maximum amount of time that the job is allowed to run but I'm sure there are other alternatives.



### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [ ] Please document the operating system you're running. If on Linux, please provide the specific distribution.
jjallaire
2022-09-12T19:18:14Z
samperman
bug
v1.3
closed
quarto background job runs too long in the background
https://github.com/quarto-dev/quarto-cli/issues/2414