过程中的cron Job -sidekiq
我有一个Ruby在Rails应用程序上,可以从Twilio接收Webhooks,我不想立即处理这些Webhooks。我想要的是:
- redis队列中的编号webhooks
- 计划在特定间隔后从队列中获得工作,并根据某种条件处理这些
- 工作,这将在特定的间隔后处理作业,我将能够控制玉米工作来处理工作。
该应用程序已经具有与Redis的Sidekq的工作设置,但是我找不到进入玉米作业的方法和以后执行的方法。
关于如何实现上述功能的任何建议?非常感谢您提供的任何帮助。
I have a Ruby on Rails application that receives webhooks from Twilio, I don't want to process these webhooks immediately. What I want is:
- Enqueue webhooks in the Redis queue
- Schedule a cron-job to get jobs from the queue after a specific interval and process them based on some condition
- This will process jobs after specific intervals and I will be able to control the frequency of corn jobs to process jobs.
The application already has a working setup of Sidekiq with Redis, but I'm unable to find a way to enqueue jobs and perform later with the help of corn job.
Any suggestions on how I can achieve the above functionality? I really appreciate any help you can provide.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试以下方法:
You can try this approach: