class MaintenanceOrchestrator::Backend
Port (hexagonal): the only way the application talks to a job queue. The rest of the codebase never refers to specific job classes, so we can swap the transport (Solid Queue, Temporal, โฆ) by exchanging the implementation.
Public Instance Methods
Source
# File app/services/maintenance_orchestrator/backend.rb, line 18 def drain_engine = raise NotImplementedError
Drains the engine after demand finishes.
# File app/services/maintenance_orchestrator/backend.rb, line 22 def execute_maintenance(execution_history_id) = raise NotImplementedError
Runs the maintenance chain of an execution.
@param execution_history_id [Integer] the execution to run
# File app/services/maintenance_orchestrator/backend.rb, line 14 def retry_lock_acquisition(execution_history_id) = raise NotImplementedError
Retries acquiring the lock for an execution after a backoff.
@param execution_history_id [Integer] the execution to retry
# File app/services/maintenance_orchestrator/backend.rb, line 26 def retry_maintenance(execution_history_id) = raise NotImplementedError
Retries the maintenance chain of an execution after a backoff.
@param execution_history_id [Integer] the execution to retry
# File app/services/maintenance_orchestrator/backend.rb, line 32 def retry_pending_maintenance(execution_history_id) = raise NotImplementedError
Retries the maintenance chain shortly after a dispatch was consumed before the primary status: :running write was visible. Used to close the cross-database race without a long backoff.
@param execution_history_id [Integer] the execution to retry
# File app/services/maintenance_orchestrator/backend.rb, line 10 def start_execution_on_engine(execution_history_id) = raise NotImplementedError
Dispatches a pending execution onto the engine.
@param execution_history_id [Integer] the execution to start
Source
# File app/services/maintenance_orchestrator/backend.rb, line 16 def supervise_engine_start = raise NotImplementedError
Supervises the engine coming up.
# File app/services/maintenance_orchestrator/backend.rb, line 37 def sync_catalog(catalog_id, force:) = raise NotImplementedError
Syncs a catalogโs metadata.
@param catalog_id [Integer] the catalog to sync @param force [Boolean] whether to force a full resync