File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -255,11 +255,10 @@ The ``ConsoleEvents::ALARM`` Event
255255**Typical Purposes **: To perform periodic tasks during long-running commands
256256(e.g. database connection keepalive, extending lock TTLs, heartbeat checks).
257257
258- When a command calls
259- :method: `Symfony\\ Component\\ Console\\ Application::setAlarmInterval `, the
260- application schedules a recurring ``SIGALRM `` signal at the given interval (in
261- seconds). Each time the signal fires, a ``ConsoleAlarmEvent `` is dispatched,
262- allowing listeners to run periodic logic without blocking the command::
258+ When a command calls :method: `Symfony\\ Component\\ Console\\ Application::setAlarmInterval `,
259+ the application sets a recurring alarm interval, causing the OS to deliver a
260+ ``SIGALRM `` signal at the given interval (in seconds). Each time the signal fires,
261+ a ``ConsoleAlarmEvent `` is dispatched, allowing listeners to run periodic logic::
263262
264263 // src/Command/LongRunningCommand.php
265264 namespace App\Command;
You can’t perform that action at this time.
0 commit comments