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
Support for Crons on Hangfire #2239
Comments
Hangfire is mostly about fire-and-forget background tasks. We'd be mostly interested their recurrent tasks feature. We should also look at Quartz.NET, which is primarily aimed at scheduling. Also, there are several cloud-based schedulers offered by Azure, AWS & GCP - but I think those should be broader initiatives, not specific for .NET. |
Note, this issue mirrors getsentry/sentry#44377 |
Also, this has already been started externally, by @kanadaj at https://github.com/kanadaj/Sentry.Monitor |
I use it as a recurring job runner on: https://github.com/dotnet/nuget-trends and plan to dogfood there |
Deleted Quartz from the title. Lets scope this to Hangfire only. if there's demand for Quartz we can create another issue and track separately. |
@bruno-garcia My implementation already has both Quartz and Hangfire and seems to work fine unless the API changes for some reason. |
Edited the title to note that your code has both and we can talk about moving it in to this repo 🙏 Thanks! |
This was discussed on Discord, but for recordkeeping: if we want to make these more generic libraries (Sentry.Hangfire and Sentry.Quartz) we'd probably want to also add facilities for tracing the jobs. This could be done for non-recurring jobs too. |
Related to Crons (but not Hangfire, an alternative): https://www.nuget.org/packages/ncrontab |
For reference, I'd love to have an implementation for Quartz. |
|
Problem Statement
Crons is in Beta: https://docs.sentry.io/product/crons/
Other SDKs:
Solution Brainstorm
Spec is pending, this can be on hold until then.
@kanadaj already created something for Hangfire (and Quartz) that can be brought in or used as inspiration: https://github.com/kanadaj/Sentry.Monitor
The text was updated successfully, but these errors were encountered: