-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Sentry delays execution of scheduled commands when offline #895
Comments
Could you let me know the time frame in which you saw these longer response times? One way to make your application less reliant on wait times due to PHP's synchronous nature is to use a self-hosted relay. |
Roughly today at 09:30 ET. It was right after a deployment so it made me concern we pushed something broken to production. HA! Yeah, definitely understand the synchronous part and how that can be a pain. Is the default timeout not 5s anymore? According to the Sentry Laravel docs, the default timeout should be 5s. My scheduled jobs were taking 10s each to run (when they are normally <1s). The only thing I can think of is the Sentry package was attempting two requests for that transaction? Also, I only briefly looked at Relay. Might end up being something that needs to happen sooner than later. Thanks for the recommendation! |
We do set a connection timeout of 2s and a timeout of 5s. These values can also be customized in your We also recently made some changes to our ingestion time outs server side, but what you are reporting concerns me that these changes do not have the effect we were hoping to see. |
I'm wondering if the doubled timeout you are seeing is because for scheduled commands we do a ping at the start of the command and one at the end. Which is why it's double of the expected 5s timeout although 5s might still be on the long side for a timeout. |
How do you use Sentry?
Sentry SaaS (sentry.io)
SDK version
4.5.1
Steps to reproduce
Currently, Sentry is having either ingestion delays or other service issues. All of my cron checks have been marked as failed even though they are working.
Expected result
Since Sentry is only a monitor, it should not impact the rest of the application's operations. If possible, I would think Sentry would either wait for all scheduled commands to complete so a backlog doesn't develop when they have an issue on their end.
Actual result
Causes a backlog of scheduled commands to run which also can result in two
schedule:run
's overlapping (thank you Laravel for thatwithoutOverlapping()
flag!). Also impacts internal health checks within the Laravel app itself. Like Spatie's health package for monitoring queue/schedule/heartbeat.The text was updated successfully, but these errors were encountered: