Issues with one time quartz .net job
I’m using .NET 8 and I’m trying to setup a Quartz Job.
What I want to achieve is that in production, this job must be scheduled (with a cron schedule), but in dev and in local I don’t need it scheduled, but I still need it to be registered because I want to be able to run a OneTimeJob from a Controller endpoint.
This is my setup:
Inside the Startup.cs