Class: Fosm::TransitionLogJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Fosm::TransitionLogJob
- Defined in:
- app/jobs/fosm/transition_log_job.rb
Overview
Writes a single transition log entry asynchronously. Used when config.transition_log_strategy = :async (SolidQueue default).
The state UPDATE has already committed before this job runs, so there is at most a brief delay between the transition completing and the log entry appearing. For strict consistency, use config.transition_log_strategy = :sync.
Instance Method Summary collapse
Instance Method Details
#perform(log_data) ⇒ Object
12 13 14 |
# File 'app/jobs/fosm/transition_log_job.rb', line 12 def perform(log_data) Fosm::TransitionLog.create!(log_data) end |