Level 61
Instead of keeping your business logic inside of the action2, extract it to a dedicated class, and just dispatch a new job with that dedicated class. As simple as that.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have an action that is run synchronously. Within this action I follow some checks, and in some cases I would like to run another action (asynchronously this time). Is it possible to make an action perform another action?
I would therefore like to have this result:
I tried to google but I couldn't find a way to make an action perform within an action. How can I do?
Please or to participate in this conversation.