How to call some functions in Async manner?

Hi,

I need to call a function in an Async manner so that it will be running in the background and the user need not to be wait for the action to complete.

How we can achieve this, Is Symfony or pimcore providing any Async method call? Or should I go with an open source library to achieve this?

Thanks in advance for your suggestions and help.
Karthikeyan B

Hi

Pimcore doesn’t provide a background provider class. It only has Task scheduling for some fixed actions like publishing at a specific time.
But you can use the Symfony Process Component:

@danielerne Thanks, it worked by making a process to run in the background.