sentry-php
sentry-php copied to clipboard
Possibility to implement memory limit/hooks for cli / infinite commands
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.
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.
@cleptric thats what I have already done, but long running tasks are only a minor part of all cli tasks hence feature request.