Class: Quilt::PerformanceReportController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Quilt::PerformanceReportController
- Includes:
- Quilt::Performance::Reportable
- Defined in:
- app/controllers/quilt/performance_report_controller.rb
Constant Summary collapse
- MAX_THREADS =
25
Instance Method Summary collapse
Methods included from Quilt::Performance::Reportable
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/quilt/performance_report_controller.rb', line 10 def create Thread.new do process_report rescue # rubocop:disable Lint/SuppressedException end if Thread.list.count < MAX_THREADS render(plain: '{"result":"success"}', status: 200) end |