Replies: 1 comment 1 reply
-
Hmm, this is interesting! I'd like to maybe add this but unsure how exactly. We currently don't have any of these plugin integrations but I can see the benefit of adding a few first-party ones. I think we might be able to add this and register it based on if a plugin is installed. But we'd also need an easy way to disable these plugin integrations if not wanted. Or we'd need to go the opt-in route which is also a possibility but requires the user to do something even though you'd be more likely to want to enable this than not. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I run action scheduler for some cron jobs. https://actionscheduler.org/
It's quite a common dependency for many plugins, such as Woocommerce , wp-security-audit-log, wp-mail-smtp and others.
The issue with it is that it doesn't throw an error if it fails, it just logs it:
https://github.com/woocommerce/action-scheduler/blob/0a294e6df6ad74f40a8293c0d9e016451a21c4d5/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php#L71
But... we could hook into
action_scheduler_failed_execution
like this:Should I make a proper merge request for this? Or this kind of integration shouldn't belong to the plugin? Should we have a different approach here?
Currently action scheduler errors are just going to the logs without touching sentry.
Beta Was this translation helpful? Give feedback.
All reactions