I'm planning to pass a multiple active job using a loop. But I need to have a delay/timeout function in each data loop. My code is like:
for s in @saved_jobs
# ADD delay funtion for each data to pass in ActiveJob Process
# for ex. every data will pass to background job after every 3minutes
ActiveCallsJob.perform_later(xxx, xx, x)
end
@saved_jobs = Information from DB
ActiveCallsJob = Class name of ActiveJob
Please Help Thank you!