mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
* Add documentation under docs/ directory * Add CI workflow for mkdocs configuration checking * Add documentation issue template * update pip-tools? * Update .gitignore files * Fix .gitignore rules * Improve release notes page * remove references to old repo
30 lines
940 B
Markdown
30 lines
940 B
Markdown
---
|
|
title: Background Tasks
|
|
---
|
|
|
|
## Background Tasks
|
|
|
|
In addition to managing the database and providing a web interface, InvenTree runs various background tasks;
|
|
|
|
### Blocking Operations
|
|
|
|
Some tasks (such as sending emails or performing bulk database actions) may take a significant amount of time. Instead of delaying the response to the user, these tasks are handled by the background task manager.
|
|
|
|
### Periodic Tasks
|
|
|
|
Some tasks must be performed on a regular, periodic basis.
|
|
|
|
## Django Q
|
|
|
|
InvenTree uses the [django-q](https://django-q.readthedocs.io/en/latest/) background task manager.
|
|
|
|
### Running Worker
|
|
|
|
The Django Q work must run separately to the web server. This is started as a separate process, as part of the InvenTree installation instructions.
|
|
|
|
If the worker is not running, a warning indicator is displayed in the InvenTree menu bar.
|
|
|
|
## Admin Interface
|
|
|
|
Scheduled tasks can be viewed in the InvenTree admin interface.
|