我计划使用循环传递多个活动作业。但是我需要在每个数据循环中都有一个延迟/超时功能。我的代码是这样的:
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
请帮忙谢谢!