aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/que_jobs_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/que_jobs_controller.rb')
-rw-r--r--app/controllers/que_jobs_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/que_jobs_controller.rb b/app/controllers/que_jobs_controller.rb
index 36d5558..a4607d9 100644
--- a/app/controllers/que_jobs_controller.rb
+++ b/app/controllers/que_jobs_controller.rb
@@ -19,6 +19,10 @@
# <http://www.gnu.org/licenses/>.
class QueJobsController < ApplicationController
+ def index
+ @jobs = QueJob.order(id: :desc)
+ end
+
def cancel
Que.execute :expire_job, [job_id]