I have a bullMq queue (deplo_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?