change how we calculate active jobs, probably will remove it from pa_job_engine, safer with threads I think. But, mostyle, added in client / server socket comms between web FE and job manager, with better job creation message (including link to job detail) and when you view job detail it auto-refreshes every few seconds until job complete)
This commit is contained in:
@@ -79,8 +79,9 @@
|
||||
</div class="nav-item dropdown">
|
||||
<div class="nav-item ml-5">
|
||||
<a href="{{url_for('jobs')}}"}}<span class="navbar-text">Active Jobs:
|
||||
{% if GetNumActiveJobs() != None %}
|
||||
<span class="badge badge-danger text-white"}}>4</span>
|
||||
{% set num_active_jobs = GetNumActiveJobs() %}
|
||||
{% if num_active_jobs > 0 %}
|
||||
<span class="badge badge-danger text-white"}}>{{num_active_jobs}}</span>
|
||||
{% else %}
|
||||
<span class="badge">0</span>
|
||||
{% endif %}
|
||||
|
||||
@@ -67,3 +67,10 @@
|
||||
</div>
|
||||
</div class="containter">
|
||||
{% endblock main_content %}
|
||||
{% block script_content %}
|
||||
<script>
|
||||
{% if job.pa_job_state != "Completed" %}
|
||||
setTimeout(function(){ window.location.reload(1); }, 3000 )
|
||||
{% endif %}
|
||||
</script>
|
||||
{% endblock script_content %}
|
||||
|
||||
Reference in New Issue
Block a user