Skip to content

Commit c8915d2

Browse files
committed
ActiveJob::Continuation::Step should be eager loaded
Otherwise it will only load in production when running the first job that defines a step. We can also force it to be eager loaded, but since it is only ony, there is no need to do that.
1 parent 5087a85 commit c8915d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activejob/lib/active_job/continuation.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ module ActiveJob
186186
class Continuation
187187
extend ActiveSupport::Autoload
188188

189-
autoload :Step
190189
autoload :Validation
191190

192191
# Raised when a job is interrupted, allowing Active Job to requeue it.
@@ -329,3 +328,5 @@ def instrument(...)
329328
end
330329
end
331330
end
331+
332+
require "active_job/continuation/step"

0 commit comments

Comments
 (0)