Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Process] AddSYMFONY_PROCESS_IDENTIFIER env var to all processes#61069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
richardhj wants to merge3 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromrichardhj:patch-3

Conversation

richardhj
Copy link
Contributor

QA
Branch?7.4
Bug fix?no
New feature?yes
Deprecations?no
IssuesFix NA
LicenseMIT

This PR adds seeds a new environment variable namedSYMFONY_PROCESS_IDENTIFIER to all created processes.

What is the motivation?

If you spawn multiple sub processes, you might want something that uniquely differentiates them.
To give an example, I like to refer to the Symfony messenger, which is a component usually utilizing multiple php processes / or workers (they might be managed by supervisord or from the main app, which is the case for Contao CMS; also seecontao/contao#8527)

TheSymfony docs states:

There should never be more than onemessenger:consume command running with the same combination ofstream,group andconsumer, or messages could end up being handled more than once. If you run multiple queue workers,consumer can be set to an environment variable, like%env(MESSENGER_CONSUMER_NAME)%, set by Supervisor (example below) or any other service used to manage the worker processes.

We think, this is a universal requirement and might be considered added to Symfony.

@carsonbotcarsonbot changed the titleAdd SYMFONY_PROCESS_IDENTIFIER env var to all processes[Process] Add SYMFONY_PROCESS_IDENTIFIER env var to all processesJul 9, 2025
@OskarStarkOskarStark changed the title[Process] Add SYMFONY_PROCESS_IDENTIFIER env var to all processes[Process] AddSYMFONY_PROCESS_IDENTIFIER env var to all processesJul 9, 2025
@nicolas-grekas
Copy link
Member

Not sure this makes sense to me for every single process. Can't you deal with this on your side if you need it?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
7.4
Development

Successfully merging this pull request may close these issues.

4 participants
@richardhj@nicolas-grekas@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp