Add Messenger Support to Automators
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3493305. -->
Reported by: [seogow](https://www.drupal.org/user/3065779)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Implement background processing support for Automators using the new AI Messenger system, enabling long-running automations to be processed asynchronously.</p>
<p>Currently, automators run directly, in batch or via cron which:</p>
<ul>
<li>Direct run can timeout during long operations and doesn't handle interruptions</li>
<li>Batch doesn't handle interruptions and isn't triggered on Entity save</li>
<li>Cron tasks can timeout during long operations and can get stuck</li>
<li>None of the above can be distributed across workers</li>
</ul>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ol>
<li>Background Processing
<ul>
<li>Integration with ai_messenger</li>
</ul>
</li>
<li>New Execution Mode
<ul>
<li>Background (new, messenger-based)</li>
</ul>
</li>
<li>Configuration
<ul>
<li>Retry policies</li>
<li>Default value</li>
<li>Graceful error responses</li>
</ul>
</li>
</ol>
<h3 id="summary-ui-changes">User interface changes</h3>
<ul>
<li>New execution mode</li>
</ul>
<h3 id="summary-api-changes">API changes</h3>
<ul>
<li>Progress callbacks</li>
</ul>
> Related issue: [Issue #3493240](https://www.drupal.org/node/3493240)
> Related issue: [Issue #3493260](https://www.drupal.org/node/3493260)
issue