Closed aquadrehz closed 3 years ago
I set it to run every 15 second as the following
begin monitor_running_tasks ensure delayed_job = DelayedJob.where("handler like '%recurring_monitor%' and locked_at is NULL").first if delayed_job.nil? interval = 15.seconds.from_now self.delay({:run_at => interval}).recurring_monitor end end
After clean dirty data and tweak to 2 instance on 2 docker. It's not occured again.
I suggest it caused from memory leak and some thread issue
I set it to run every 15 second as the following