Error thrown when the service is restarting #10

Closed
opened 2026-01-27 12:38:47 +01:00 by admin · 1 comment
Owner

Originally created by @nkrewcun on GitHub (Oct 21, 2024).

Originally assigned to: @macintoshplus on GitHub.

I have configured the bundle to restart the service every 50 messages consumed. When it happens, an error is thrown.

Here's the message, exception and stack trace:

Message
Error thrown while running command "-e prod win32service:run "service.name" 0". Message: "Stop requested"
Level
CRITICAL
Exception

   "class": "RuntimeException",
   "message": "Stop requested",
   "code": 0,
   "file": "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\Model\\MessengerServiceRunner.php:108",
   "trace": [
       "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\MessengerSubscriber\\StopWorkerOnMessageLimitListener.php:32",
       "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php:230",
       "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php:59",
       "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\Model\\MessengerServiceRunner.php:134",
       "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\service-library\\lib\\Model\\AbstractServiceRunner.php:149",
       "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\Command\\ExecuteServiceCommand.php:74",
       "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\console\\Command\\Command.php:298",
       "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\console\\Application.php:1058",
       "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\framework-bundle\\Console\\Application.php:96"
    ]
}

Command
-e prod win32service:run "service.name" 0
Message
Stop requested

Originally created by @nkrewcun on GitHub (Oct 21, 2024). Originally assigned to: @macintoshplus on GitHub. I have configured the bundle to restart the service every 50 messages consumed. When it happens, an error is thrown. Here's the message, exception and stack trace: **Message** Error thrown while running command "-e prod win32service:run "service.name" 0". Message: "Stop requested" **Level** CRITICAL **Exception** ```{ "class": "RuntimeException", "message": "Stop requested", "code": 0, "file": "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\Model\\MessengerServiceRunner.php:108", "trace": [ "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\MessengerSubscriber\\StopWorkerOnMessageLimitListener.php:32", "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php:230", "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php:59", "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\Model\\MessengerServiceRunner.php:134", "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\service-library\\lib\\Model\\AbstractServiceRunner.php:149", "C:\\Sites\\wwwroot\\app\\vendor\\win32service\\win32servicebundle\\lib\\Command\\ExecuteServiceCommand.php:74", "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\console\\Command\\Command.php:298", "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\console\\Application.php:1058", "C:\\Sites\\wwwroot\\app\\vendor\\symfony\\framework-bundle\\Console\\Application.php:96" ] } ``` **Command** -e prod win32service:run "service.name" 0 **Message** Stop requested
admin added the bug label 2026-01-27 12:38:47 +01:00
admin closed this issue 2026-01-27 12:38:47 +01:00
Author
Owner

@macintoshplus commented on GitHub (Oct 23, 2024):

Fixed in release v2.0.1

@macintoshplus commented on GitHub (Oct 23, 2024): Fixed in release v2.0.1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: win32service/Win32ServiceBundle#10