Sha256: 38cb3920d6041236735ea964d0eac6039ab8487530079ccc672879ce5198f48e

Contents?: true

Size: 508 Bytes

Versions: 29

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

require 'tasks_scheduler/checker'

class TasksSchedulerDaemonController < ApplicationController
  require_relative 'tasks_scheduler_daemon_controller/_download_log'

  def index; end

  def execute
    @result = ::TasksScheduler::Daemon.execute(params[:tasks_scheduler_execute_action])
    render 'index'
  end

  def status
    render json: { daemon_running: ::TasksScheduler::Daemon.running?,
                   tasks_all_ok: ::ScheduledTask.all.none?(&:failed?) }
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
tasks_scheduler-0.9.4 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.9.3 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.9.2 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.9.1 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.9.0 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.8.0 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.7.0 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.13 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.12 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.11 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.10 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.9 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.8 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.7 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.6 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.5 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.4 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.3 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.2 app/controllers/tasks_scheduler_daemon_controller.rb
tasks_scheduler-0.6.1 app/controllers/tasks_scheduler_daemon_controller.rb