lib/rocket_job/jobs/dirmon_job.rb in rocketjob-3.1.0 vs lib/rocket_job/jobs/dirmon_job.rb in rocketjob-3.2.0
- old
+ new
@@ -41,12 +41,13 @@
include RocketJob::Plugins::Restart
self.priority = 40
# Number of seconds between directory scans. Default 5 mins
- field :check_seconds, type: Float, default: 300.0
+ field :check_seconds, type: Float, default: 300.0, copy_on_restart: true
+
# Hash[file_name, size]
- field :previous_file_names, type: Hash, default: {}
+ field :previous_file_names, type: Hash, default: {}, copy_on_restart: true
before_create :set_run_at
# Iterate over each Dirmon entry looking for new files
# If a new file is found, it is not processed immediately, instead