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