Skip to content

[Messenger] Consume command returns Undefined constant "SIGTERM" error if PCNTL module not enabled #51836

@tgalcheva

Description

@tgalcheva

Symfony version(s) affected

6.3.5

Description

Working on dockerized project with shared prebuilt base image without PCNTL module enabled.

After updating to Symfony latest release 6.3.5 - the messenger:consume command no longer can be executed, it returns

image

In the latest release there is a fix for exiting messenger:failed:retry command, which introduces this implementation:

public function getSubscribedSignals(): array
    {
        return $this->signals ?? [\SIGTERM, \SIGINT];
    }

without checking if the signals are defined.

With symfony/messenger:6.3.4 there is no such problem.

According to PHP documentation:
Process Control support in PHP is not enabled by default. (https://www.php.net/manual/en/pcntl.installation.php)

How to reproduce

Run a Symfony 6.3.5 project with messenger configuration in an environment with php8.2, without pcntl extension.

Try to run php bin/console messenger:consume

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy