2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Add a "heartbeat" task which runs every 5 minutes

- Allows us to track if the worker is running
- Due to Stat.get_all() not always working
This commit is contained in:
Oliver Walters
2021-03-12 15:27:28 +11:00
parent 4925f24ca9
commit bfb0cb3b47
4 changed files with 45 additions and 9 deletions

View File

@ -59,8 +59,10 @@
{% endif %}
<li class='dropdown'>
<a class='dropdown-toggle' data-toggle='dropdown' href="#">
{% if not system_healthy or not up_to_date %}
{% if not system_healthy %}
<span class='fas fa-exclamation-triangle icon-red'></span>
{% elif not up_to_date %}
<span class='fas fa-info-circle icon-green'></span>
{% endif %}
<span class="fas fa-user"></span> <b>{{ user.get_username }}</b></a>
<ul class='dropdown-menu'>