Skip to content
Snippets Groups Projects
Unverified Commit 824c3e35 authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

correct display for job counter (#1853)

* correct display for job counter

* only fast queues

* remove schema

* add comment for noobs
parent 80233a2e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,8 @@ class Admin::DashboardController < Admin::ApplicationController
@namespaces << Research if feature_research?
@namespaces << Communication if feature_communication?
@namespaces << Administration if feature_administration?
@background_tasks_count = Delayed::Job.where.not(queue: 'cleanup').length
# higher priorities are negatives. Default is priority 0
@background_tasks_count = Delayed::Job.where('priority <= 0').length
breadcrumb
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment