<p>I am looking for a simple background jobs processing library. I know that it can be done using a pool of goroutines, but I need something that will give me a bit more control. I need something that can help me do the following things -
* Retry a task in case of failure (e.g: if the remote API failed to respond)
* Schedule a task to be run after some time (e.g. run the task after 30 mins or 1 hour)
* Delete a particular scheduled task</p>
<p>Is there any package that does the above-mentioned tasks?</p>
<hr/>**评论:**<br/><br/>vjdhama: <pre><p>Faktory is one. It's not as mature as sidekiq but is built by same person who created sidekiq.</p>
<ul>
<li><a href="https://github.com/contribsys/faktory" rel="nofollow">https://github.com/contribsys/faktory</a></li>
<li><a href="https://github.com/contribsys/faktory_worker_go" rel="nofollow">https://github.com/contribsys/faktory_worker_go</a></li>
</ul></pre>zxo0oxz: <pre><p>Interesting. Any thoughts on using something like this vs a message queue like rabbitmq for similar tasks?</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传