스케쥴러 시작/정기 기능 추가

This commit is contained in:
2025-04-17 06:42:51 +09:00
parent 4b9c59b6e0
commit f9cdd77e7a
7 changed files with 47 additions and 14 deletions

View File

@@ -1,3 +1,5 @@
$modbus_polling_threads ||= []
Rails.application.config.after_initialize do
Modbus::PollingService.start
end

View File

@@ -14,9 +14,8 @@ Rails.application.routes.draw do
resources :modbus do
collection do
get "start"
get "stop"
get "status"
post "start"
post "stop"
get "schedule_edit"
post "schedule_edit_update"
end