aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/que_jobs_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/que_jobs_controller.rb b/app/controllers/que_jobs_controller.rb
index bab2c47..34ac201 100644
--- a/app/controllers/que_jobs_controller.rb
+++ b/app/controllers/que_jobs_controller.rb
@@ -3,6 +3,10 @@ class QueJobsController < ApplicationController
ActiveRecord::Base.connection.execute(
"DELETE FROM que_jobs WHERE job_id = #{job_id}::bigint"
)
+
+ flash[:success] = 'Job canceled'
+
+ redirect_to mini_environments_path
end
def retry_now
@@ -11,6 +15,10 @@ class QueJobsController < ApplicationController
SET run_at = now()
WHERE job_id = #{job_id}::bigint"
)
+
+ flash[:success] = 'Retrying the job now'
+
+ redirect_to mini_environments_path
end
def job_id