lib/rocket_job/jobs/dirmon_job.rb in rocketjob-6.1.1 vs lib/rocket_job/jobs/dirmon_job.rb in rocketjob-6.2.0

- old
+ new

@@ -40,9 +40,13 @@ # Runs every 5 minutes by default self.cron_schedule = "*/5 * * * * UTC" self.description = "Directory Monitor" self.priority = 30 + # Prevent multiple dirmon jobs from running at the same time by only + # creating the next instance when this one finishes. + self.cron_after_start = false + # Hash[file_name, size] field :previous_file_names, type: Hash, default: {}, copy_on_restart: true # Checks the directories for new files, starting jobs if files have not changed since the last run. def perform