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
Description
When using the executionTimeLimit option in Ecotone consumers, the framework does not properly handle termination signals (e.g., SIGTERM, SIGQUIT). As a result, consumers are not gracefully shutting down when a termination signal is received. This behavior is unexpected and causes issues in containerized environments where consumers need to handle shutdown signals correctly.
How to reproduce
Create a consumer with the command: php bin/console ecotone:run internal --executionTimeLimit 3600000.
Start the consumer process.
Send a SIGTERM (kill -TERM <pid>) or stop the container if running in Docker.
Observe that the process does not handle the signal as expected and does not shut down gracefully.
The text was updated successfully, but these errors were encountered:
@dgafka With the given example of the consumer startup parameter value, PollToGatewayTaskExecutor simply waits for a message to appear. As a result, if there are no messages in the consumer, execution never reaches it. Therefore, a different parameter is needed to define the execution time limit for TimeLimitInterceptor.
Ecotone version(s) affected: latest
Description
When using the executionTimeLimit option in Ecotone consumers, the framework does not properly handle termination signals (e.g., SIGTERM, SIGQUIT). As a result, consumers are not gracefully shutting down when a termination signal is received. This behavior is unexpected and causes issues in containerized environments where consumers need to handle shutdown signals correctly.
How to reproduce
Create a consumer with the command: php bin/console ecotone:run internal --executionTimeLimit 3600000.
Start the consumer process.
Send a SIGTERM (
kill -TERM <pid>
) or stop the container if running in Docker.Observe that the process does not handle the signal as expected and does not shut down gracefully.
The text was updated successfully, but these errors were encountered: