Thursday, 8 June 2017

HapiJS start longer background process

How should I implement a PHP exec like call to a system function with HapiJS? The user submits a processing job that needs to run in the background for some time.

I somehow need to return a job id / session id to the user, run the job asynchronously, allow the user to check back for completion and reroute when completed...

I bet there are existing solutions for that, yet I'd highly welcome a pointer into the right direction.



via El Dude

No comments:

Post a Comment