Skip to content

Signal handling in consumers fails with executionTimeLimit option #440

@lifinsky

Description

@lifinsky

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

  1. Create a consumer with the command: php bin/console ecotone:run internal --executionTimeLimit 3600000.

  2. Start the consumer process.

  3. Send a SIGTERM (kill -TERM <pid>) or stop the container if running in Docker.

  4. Observe that the process does not handle the signal as expected and does not shut down gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions