Infinite loop for failing issue sync in queues
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3465211. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When synchronising issue with the queue and that fails e.g. because the user name <code>admin</code> can not be used, then this throws a requeue exception and the same items gets processed again right away. Of course, it then fails again, and that runs into an infinite loop.</p>
<p>The same problem is likely to happen for other sync queues as well.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Sounds like some tasks need to be taken.</p>
<p>For some error types, we should not requeue because we know that this will never succeed.</p>
<p>For others, we should at least write log messages so that the site owner knows what's going wrong. The requeue should probably only happen with a delay.</p>
<p>Do we also need something like a max retry threshold? I wonder if the Drupal queue API already supports that?</p>
issue