Add a way to mark the executor on agent runner
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3557417. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Sounds morbid! We need a way for any executor, meaning whomever starts an agent, to set that they did start it. When you are using the events you might want to hook in on specific moments and change them depending on who is using them.</p> <p>So, when you start an agent, you should have the possibility to set that you are the executor of that agent. This is only needed for config agents.</p> <p>It needs to propagate to subagents as well.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>* Add a optional method called setExecutor that can be set while running an agent.<br> * Add a method called getExecutor<br> * Make sure that executor can be collected in all events<br> * Make sure that it propagates to the subagents</p>
issue