Skip to content
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

Possibility to implement memory limit/hooks for cli / infinite commands #1709

Open
fliespl opened this issue Mar 2, 2024 · 2 comments
Open

Comments

@fliespl
Copy link

fliespl commented Mar 2, 2024

Problem Statement

In infinite commands, excimer will break with memory limit after some time. Haven't found a way to stop it (either after memory being close to limit or after some time).

https://ss.codeone.pl/ss-2024-03-02-21-25-50-1709411150-DN74H5Py.png

Solution Brainstorm

Maybe a timeout limit? Or possibility to use hooks (i.e. symfony) to create new session.

@fliespl fliespl changed the title Possibility to implement memory limit for cli / infinite commands Possibility to implement memory limit/hooks for cli / infinite commands Mar 2, 2024
@cleptric
Copy link
Member

cleptric commented Mar 2, 2024

I would not recommend profiling long-running processes, as Sentry only supports profiles with a duration of 30s (for now). So I suggest you disable Excimer in your cli's php.ini.

@fliespl
Copy link
Author

fliespl commented Mar 2, 2024

@cleptric thats what I have already done, but long running tasks are only a minor part of all cli tasks hence feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants