Skip to content

Commit 2650671

Browse files
committed
Minor tweak
1 parent 86429d0 commit 2650671

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/console/events.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)