File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,14 @@ are done doing other stuff::
135
135
advantage of the ``kernel.terminate `` event, and run your command **synchronuously **
136
136
inside this event. Be aware that ``kernel.terminate `` is called only if you run ``PHP-FPM ``.
137
137
138
+ .. caution ::
139
+
140
+ Beware also that if you do that, the said php process won't available to serve
141
+ any new request until the subprocess is finished, which means you can block your
142
+ FPM pool quickly if you're not careful enough.
143
+ That's why it generally way better to not do any fancy thing even after the request is sent
144
+ but prefer using a job queue.
145
+
138
146
:method: `Symfony\\ Component\\ Process\\ Process::wait ` takes one optional argument:
139
147
a callback that is called repeatedly whilst the process is still running, passing
140
148
in the output and its type::
You can’t perform that action at this time.
0 commit comments