Class: Flightdeck::Jobs::DiscardsController
- Inherits:
-
ActionsController
- Object
- ApplicationController
- ActionsController
- Flightdeck::Jobs::DiscardsController
- Defined in:
- app/controllers/flightdeck/jobs/discards_controller.rb
Overview
Discarding delegates to Solid Queue's Execution#discard, which destroys the job and its execution row together and lets Solid Queue release whatever concurrency locks the job was holding.
A job that is currently being executed cannot be discarded — Solid Queue raises UndiscardableError, and Flightdeck surfaces that rather than trying to work around it.
Constant Summary collapse
- DISCARDABLE_STATES =
%i[ready scheduled blocked failed].freeze
Constants inherited from ApplicationController
ApplicationController::UNCONFIGURED_MESSAGE