Skip to content

[Messenger] Use "real" memory usage to honor --memory-limit #31632

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2019

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented May 26, 2019

Q A
Branch? 4.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #29957
License MIT
Doc PR n/a

At least it's consistent with what other daemon-based libraries do:
https://github.com/php-enqueue/enqueue-dev/blob/master/pkg/enqueue/Consumption/Extension/LimitConsumerMemoryExtension.php#L58
https://github.com/M6Web/DaemonBundle/blob/master/src/M6Web/Bundle/DaemonBundle/Command/DaemonCommand.php#L493

@fabpot
Copy link
Member

fabpot commented May 27, 2019

Thank you @chalasr.

@fabpot fabpot merged commit fbfe2df into symfony:4.2 May 27, 2019
fabpot added a commit that referenced this pull request May 27, 2019
…t (chalasr)

This PR was merged into the 4.2 branch.

Discussion
----------

[Messenger] Use "real" memory usage to honor --memory-limit

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29957
| License       | MIT
| Doc PR        | n/a

At least it's consistent with what other daemon-based libraries do:
https://github.com/php-enqueue/enqueue-dev/blob/master/pkg/enqueue/Consumption/Extension/LimitConsumerMemoryExtension.php#L58
https://github.com/M6Web/DaemonBundle/blob/master/src/M6Web/Bundle/DaemonBundle/Command/DaemonCommand.php#L493

Commits
-------

fbfe2df [Messenger] Use real memory usage for --memory-limit
@chalasr chalasr deleted the mem-real-use branch May 27, 2019 11:23
@chalasr
Copy link
Member Author

chalasr commented May 27, 2019

Note to mergers: The class has been moved and renamed to StopWhenMemoryUsageIsExceededWorker in 4.3, this patch should be applied there when merging up.

@fabpot
Copy link
Member

fabpot commented May 27, 2019

Thanks for the head-up. Fixed in 4bd8534

This was referenced May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants