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

Cronjob monitoring #11

Open
dereuromark opened this issue Feb 17, 2024 · 3 comments
Open

Cronjob monitoring #11

dereuromark opened this issue Feb 17, 2024 · 3 comments

Comments

@dereuromark
Copy link
Collaborator

I wonder if cronjob/queue monitoring could be useful, as per
https://docs.sentry.io/platforms/php/crons/

@LordSimal
Copy link
Owner

Refs: LordSimal/cakephp-scheduler#4

@LordSimal
Copy link
Owner

Sentry is initialized in https://github.com/LordSimal/cakephp-sentry/blob/3.x/src/CakeSentryInit.php#L43
which is called while bootstrapping the plugin https://github.com/LordSimal/cakephp-sentry/blob/3.x/config/bootstrap.php#L14

so in the end all a user has to do is call the namespaced functions from the PHP SDK and it should be fine.

@LordSimal
Copy link
Owner

We could add a Command.beforeExecute and Command.afterExecte event to the CommandRunner to at least capture the check-ins for before the command is started and after it has finished.

The heartbeat must be implemented by each command though I guess.

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

No branches or pull requests

2 participants