Quartz needs reference to Quartz.Extensions.Hosting
See original GitHub issueHi, great job on the new version.
I believe OpenIddict.Quartz
is missing a reference to Quartz.Extensions.Hosting
. Currently, without referencing this package separately, then
services.AddQuartzHostedService(options => options.WaitForJobsToComplete = true);
won’t work. (Right now, OpenIddict.Quartz
depends on Quartz.Extensions.DependincyInjection
which in turn depends on the core Quartz
package, but the Quartz.Extensions.Hosting
package is not present.)
Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Hosted Services Integration
You can add Quartz configuration by invoking an extension method AddQuartzHostedService on IServiceCollection . This will add a hosted Quartz ...
Read more >Microsoft DI Integration | Quartz.NET
Quartz.Extensions.Hosting allows you to have a background service for your application that handles starting and stopping the scheduler. Example ...
Read more >Using Quartz.NET with ASP.NET Core and worker services
In this post I show how to run Quartz.NET jobs in ASP.NET Core and worker service apps using the Quartz.Extensions.Hosting package.
Read more >Creating a Quartz.NET hosted service with ASP.NET Core
In this post I describe how to run Quartz.NET jobs using an ASP.NET Core hosted service, and how to handle scoped services inside...
Read more >Quartz.aspnetcore and hosting in ASP.NET Core
1 Answer. According to this article, you could find the AddQuartz is used to add base Quartz scheduler, job and trigger configuration(configure ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lahma thanks for chiming in, much appreciated!
As you said, there’s likely no right answer here. As such, I’m going to leave things as-is for now. If we ever decide to make Quartz.NET a first-class citizen by adding
OpenIddict.Quartz
to theOpenIddict
metapackage, we’ll still be able to revisit that.Thanks!
I am slightly confused here. I have followed the examples and looked at the configuration class in the source code. I am adding the Quartz support
I then add the Core service and initialize with
UseQuartz
This gives the following output,
but the cleanup never fires and the code that is supposed to be triggered between 1 to 10 min after initialization in
OpenIddictQuartzConfiguration
never runs. What am I doing wrong here? I image something stupid…