<p dir="auto">Hi!</p>
<p dir="auto">I use CELERYD_STATE_DB to persist revoked tasks.<br>
Flower reports hundreds of duplicated lines in that file ...</p>
<p dir="auto">Indeed, when I read the file, I get :</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# in a celery shell
&gt;&gt;&gt; from celery.worker import state
&gt;&gt;&gt; p = state.Persistent(state, CELERYD_STATE_DB)
&gt;&gt;&gt; p._revoked_tasks
LimitedSet(1861)
&gt;&gt;&gt; len(p._revoked_tasks.as_dict())
6"><pre class="notranslate"><span class="pl-c"># in a celery shell</span>
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">worker</span> <span class="pl-k">import</span> <span class="pl-s1">state</span>
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-s1">state</span>.<span class="pl-v">Persistent</span>(<span class="pl-s1">state</span>, <span class="pl-v">CELERYD_STATE_DB</span>)
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">p</span>.<span class="pl-s1">_revoked_tasks</span>
<span class="pl-v">LimitedSet</span>(<span class="pl-c1">1861</span>)
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">len</span>(<span class="pl-s1">p</span>.<span class="pl-s1">_revoked_tasks</span>.<span class="pl-en">as_dict</span>())
<span class="pl-c1">6</span></pre></div>
<p dir="auto">So, when merging revoked task lists, there should be some attempt at de-duplicating them, no ?</p>
<p dir="auto">I think that it would be a good idea to release a new version that includes all bug fixes so far. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thedrow/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thedrow">@thedrow</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/auvipy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/auvipy">@auvipy</a> thoughts?</p>
<p dir="auto">I can help with the changelog.</p>