You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i think i have found a problem. If the child process throws an uncought exception and is running some repeated tasks or coroutines
I would expect the child process to end if there is an uncought exception and that there is an ContextException thrown in the parent process.
The result ist that the child.php is running forever the repeated task and the main process waiting for the child.php to end.
Without the repeated callback the ContextException is thrown in the main process and the script ends.
I tried to find the problem, but i'am not sure how to solve it:
The runContext() from Context/Internal/functions.php catches the exception and sends an ExitFailure back to the parent process, but the EventLoop::run() at the end of the function is running forever, because of the repeated callback.
The main process receives the exit result, but the join() from ProcessContext never ends, because the child process is still running.
I attached two example files to reproduce the problem. test.txt child.txt
The text was updated successfully, but these errors were encountered:
Hi,
i think i have found a problem. If the child process throws an uncought exception and is running some repeated tasks or coroutines
I would expect the child process to end if there is an uncought exception and that there is an ContextException thrown in the parent process.
The result ist that the child.php is running forever the repeated task and the main process waiting for the child.php to end.
Without the repeated callback the ContextException is thrown in the main process and the script ends.
I tried to find the problem, but i'am not sure how to solve it:
The runContext() from Context/Internal/functions.php catches the exception and sends an ExitFailure back to the parent process, but the EventLoop::run() at the end of the function is running forever, because of the repeated callback.
The main process receives the exit result, but the join() from ProcessContext never ends, because the child process is still running.
I attached two example files to reproduce the problem.
test.txt
child.txt
The text was updated successfully, but these errors were encountered: