Class: Api::SchedulerController
- Inherits:
-
ApiController
- Object
- ActionController::Base
- ApplicationController
- ApiController
- Api::SchedulerController
- Defined in:
- app/controllers/api/scheduler_controller.rb
Overview
Scheduler Controller
This controller manages the flow of jobs by updating the status for noteable jobs. A good practice would be to call this endpoint from something like cron every 2 minutes or the like.
Instance Method Summary (collapse)
-
- (Object) schedule
Update the statuses for all relevant jobs.
Instance Method Details
- (Object) schedule
Update the statuses for all relevant jobs
All unfinished jobs will have their statuses updated, and are returned in the response. A job is unfinished if it's state is either scheduled, accepted, processing or on hold.
11 12 13 |
# File 'app/controllers/api/scheduler_controller.rb', line 11 def schedule respond_with Schedule.run! end |