lib/rocket_job/plugins/restart.rb in rocketjob-6.0.0.rc1 vs lib/rocket_job/plugins/restart.rb in rocketjob-6.0.0.rc2
- old
+ new
@@ -89,12 +89,12 @@
def rocket_job_restart_new_instance
if expired?
logger.info("Job has expired. Not creating a new instance.")
return
end
- job_attrs =
+ job_attrs =
rocket_job_restart_attributes.each_with_object({}) { |attr, attrs| attrs[attr] = send(attr) }
- job = self.class.new(job_attrs)
+ job = self.class.new(job_attrs)
# Copy across input and output categories to new scheduled job so that all of the
# settings are remembered between instance. Example: slice_size
job.input_categories = input_categories if respond_to?(:input_categories)
job.output_categories = output_categories if respond_to?(:output_categories)