-
-
Notifications
You must be signed in to change notification settings - Fork 513
Crons automatic support for gems #2134
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
Comments
schedule * optional patch under `sidekiq_cron` * patch the `Sidekiq::Cron::Job#save` method and auto inject the Sentry::MonitorCheckIns module and turn monitoring on part of #2134
schedule * optional patch under `sidekiq_cron` * patch the `Sidekiq::Cron::Job#save` method and auto inject the Sentry::MonitorCheckIns module and turn monitoring on part of #2134
schedule * optional patch under `sidekiq_cron` * patch the `Sidekiq::Cron::Job#save` method and auto inject the Sentry::MonitorCheckIns module and turn monitoring on part of #2134
schedule * optional patch under `sidekiq_cron` * patch the `Sidekiq::Cron::Job#save` method and auto inject the Sentry::MonitorCheckIns module and turn monitoring on part of #2134
schedule * optional patch under `sidekiq_cron` * patch the `Sidekiq::Cron::Job#save` method and auto inject the Sentry::MonitorCheckIns module and turn monitoring on part of #2134
schedule * optional patch under `sidekiq_cron` * patch the `Sidekiq::Cron::Job#save` method and auto inject the Sentry::MonitorCheckIns module and turn monitoring on part of #2134
Looking at Whenever, it's a bit funny:
I think we can make our own wrapper that:
I wonder if this should be configurable, so the user could opt-out of that behavior? I have a sneaky suspicion performance of starting a rake task only to ping Sentry, and then start another wrapped rake task could be not entirely great. |
@natikgadzhi hmm if it's bash based, I'd leave that out of the scope of this task. |
clockwork is also fully unaware of what scheduling system is in use, so we can't do much there either, let's just ship the sidekiq stuff for now. |
I looked into Clockwork yesterday and tried to prototype it.
1. We can setup the error handler at least, relatively easy. Although it’s just three lines for the user to setup themselves.
2. We could try and hook into their execute method that, in theory, wraps execution of _block_ tasks, but some tasks are allowed to be passed as _strings_ and I have no clue what the hell is going on. If it doesn’t look clear to me and you after taking a look, I doubt whatever integration we can do will be clear for users, and won’t get in their way.
So, agreed.
|
If you're open to it, and if it'll be useful, I'm down to prepare a documentation PR to sentry-docs and README here that would cover how to plug crons monitoring for sidekiq-* and clockwork / whenever too. |
@natikgadzhi of course, feel free to PR, help is always appreciated! We can collaborate on the docs PR if we need consistency with other platform docs. Let me know if you run in to problems. |
I'm starting to look at the docs — will mention you in a PR. |
Both |
alright can close this now |
wheneverbash based, so just usesentry-cli
clockworkalso unaware of job system, so we can't really patchOriginally posted by @sl0thentr0py in #2090 (comment)
The text was updated successfully, but these errors were encountered: