admin管理员组文章数量:1277566
I have a bullMq queue (deploy_site
) that takes around 20 seconds to finish. There should be no concurrent run per site, so basic deduplication was easy:
deployQueue.add({
id: siteId
},
{
deduplication: {
id: siteName
}
});
But the problem is, if user changes the config and wants to update it during a job running, I lose that job because of deduplication. Then I can never deploy the site with the latest configuration unless trying again.
What is the best way of handling that kind of issues?
本文标签: javascriptbullmq deduplicate job while keeping the last one in the queueStack Overflow
版权声明:本文标题:javascript - bullmq deduplicate job while keeping the last one in the queue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741285006a2370220.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论