Questions tagged [quartz.net]
Quartz.NET is an open source job scheduling library for .NET. A job scheduler is a system that is responsible for executing (or notifying) other software components when a predetermined (scheduled) time arrives. NOTE: this tag is for questions about the .NET version; for Java questions please use [quartz-scheduler] instead.
1,301
questions
0
votes
0answers
16 views
SQL CLR Function Using Quartz.net
Am trying to create a CLR function and inside am using below quartz.net code snippet
public static class SqlCron
{
[SqlFunction(IsDeterministic = true, IsPrecise = true)]
public static ...
1
vote
0answers
30 views
How can I mutate the state of a C# Quartz JobDataMap in a Job?
I'm using C# Quartz.NET as part of a command line application. A job SomeDataReadoutJob (which shall not be executed concurrently [DisallowConcurrentExecution]) is used to read data out from somewhere....
0
votes
0answers
17 views
Define list of triggers to execute job
I would like to execute same job in different scheduled times.
Here is one sample which I wrote:
ISchedulerFactory schedFact = new StdSchedulerFactory();
var setoftrigs = new HashSet<...
1
vote
0answers
34 views
Job sheduler to be used across multiple web applications
I have multiple web applications (.NET Core 3.1) that need to utilize one resource (another, third-party, legacy application) via it's API. The servers are really terrible and I can only make only few ...
1
vote
0answers
35 views
Why quartz.net does not execute all my code?
I am using a task scheduled using quartz.net in mvc, but unfortunately not all of my code runs completely and ignores most of the code steps.
After much effort and comparison with previous examples, I ...
0
votes
0answers
16 views
Quartz.net - How to set last firetime in the trigger?
For example, I made a trigger to go off every 20 minites.
Now it's 3.10.
If I run the trigger now, it'll go off at 3.30. but I'd like it to be counted not from the current time, but from 3.00 so it ...
0
votes
0answers
18 views
How to Set up QuartzNet to Execute Recurring Background Job?
In an MVC5 web application using Net 4.8, I am trying to do the following:
When launching the application, I would like a scheduler to trigger a job every 2 Minutes.
The job reads and processes ...
0
votes
0answers
38 views
Quartz.Net Trigger starts wrong time
I am a beginner in Quartz.Net using version 3.0.7 for WPF application.
My trigger date is set by a date-time picker and time is set inside code
, this code works perfectly but when I run the code ...
0
votes
0answers
22 views
Database provider problem in scoped service of a Quartz Job
I'm facing this problem No database provider has been configured for this DbContext... i've debugged the instantiation of a DbContext, it has the override method OnConfiguring implemented, on this ...
1
vote
0answers
29 views
Trigger specific Quartz jobs
I am using Quartz to schedule jobs and use a console application to execute all the jobs.
I currently have 2 console applications which refer to the same set of Quartz tables viz. QRTZ_JOB_DETAILS, ...
2
votes
2answers
110 views
Error accessing a service that uses DbContext on my quartz job
I am making a web API using ASP.NET Core and now I am having a problem with quartz scheduled jobs. The jobs I have will access my services to update the database. After some researches, I figured how ...
0
votes
1answer
49 views
dependency injection of Scheduler Quartz now works properly
I'm trying to use a Quartz SchedulerFactory, in this way:
i'm adding a scheduler factory as a singleton object in IServiceCollection like this:
services.AddSingleton<ISchedulerFactory, ...
0
votes
0answers
37 views
Is there a workaround when ERP System library doesn't allow multiple asynchronous log in operations
I have created an application that sends invoices to recipients from ERP system called Comarch Optima. To print the attachment, I use the built-in functions of this system (with COM Objects). ...
0
votes
1answer
28 views
Problem accessing my database/context on a Quartz job
I have just started using Quartz on my asp.net core web API project but I can't figure out how to access my database/context on my quartz class that implements IJob, when I try to add the context to ...
0
votes
0answers
26 views
Quartz Job Execute: Thread terminated by Quartz?
I'm using Quartz to run some scheduled jobs. When a job is running, it will call a command line program to do something. The code is at below:
public async System.Threading.Tasks.Task Execute(...
0
votes
0answers
23 views
Quartz.Net .WithMisfireHandlingInstructionNextWithRemainingCount not working as expected
I have a simple job that is annotated DisallowConcurrentExecution attribute to avoid concurrence, so the same job just can run once per time (OK)
It is a Simple job and runs every 4 seconds (OK)
The ...
2
votes
0answers
28 views
After end of daylight saving time, no CRON triggers occur except one
In our .NET application, we have several hourly job triggers:
XX:00
XX:05
XX:10
XX:15
During the end of DST (25 October 2020 at 03:00) the triggers stopped working except the first trigger (XX:00).
...
1
vote
0answers
47 views
Dependency Injection Quartz.Net Scheduler
I'm currently trying to use a repository to update some data in the DB using quartz.net.
Keep in mind that I'm using ASP.Net Core 3.1
The problem that I'm currently having is that when I'm injecting ...
1
vote
0answers
63 views
Stop asynchronous job of Quartz
I have just discovered Quartz and currently trying to implement it in my project. I have hard times finding any working tutorial or example of implementation with asynchronous jobs. I have got it ...
0
votes
1answer
183 views
Quartz says Cannot instantiate type which has no empty constructor
I am using latest version of Quartz.net and I am also using Autofac. I am currently seeing that my Quartz job doesn't get triggered. The error that I am getting is:
System.ArgumentException: Cannot ...
0
votes
1answer
45 views
Quartz Scheduler jobs dont work same times. Allsways work only one
Problem: My jobs doesn't work same times. Allways work only one. What is wrong in code.
Programs runs like below:
Expected runs
**info: exampleProject.Api.Services.QuartzServices.Job1[0]
Job1 is ...
0
votes
1answer
52 views
Running AsyncTask from Quartz.net
I have a quartz job that run periodically, and within execution I would submit a a rest api request, via HttpClient. Currently if the rest api "call" failed(for instance Bad request status ...
0
votes
0answers
27 views
Save data in In-Memory cache (using Quartz) in DAL and get the data from the cache in BAL
I have multi layered architecture (i.e API Layer, Business Logic Layer & Data Access Layer) in my .Net Core API application, and I'm using Quartz (Job Scheduling Library) which will execute the ...
1
vote
0answers
236 views
Quartz with Asp.Net Core 3.1
I am working on ASP.NET 3.1 Web Api project and I want to configure Quartz to schedule jobs which will work after 10 seconds. I need help in this because I setup quartz but job is not firing.
I ...
0
votes
0answers
19 views
quartz-scheduler-job-run-once-then-gives-an-error
Error retrieving job, setting trigger state to ERROR.
Quartz.JobPersistenceException: Couldn't retrieve job because a required type was not found: Could not load type 'Employee.Jobs.Infrastructure....
0
votes
0answers
35 views
Quartz 3.1 mysql trigger is not working properly
After converting .Net Core 2.1 to 3.1 Quartz scheduler does not working properly with mysql. Sql server it works perfectly.
Application .Net Core Version : .Net Core 3.1
MySql Version : 8.0.17
...
0
votes
2answers
48 views
Cron expression that triggers every x min between 7:20AM-8:30PM Mon-Sun
How can I express a schedule job that triggers every x min between 7:20AM-8:30PM Mon-Sun in Quartz.Net? I'm a bit confused and the testing would take time to confirm.
According to https://www....
0
votes
0answers
135 views
Quartz Cron Job running every hour like 1PM, 2PM, 3PM, … ,etc 24 times per day every day
Im using Quartz Nuget Package to schedule a job to execute it every hour every day. For example it should be run @1.00PM, 2.00PM, 3.00PM, ... and so on 24 times per day.
Can you please advise how to ...
1
vote
0answers
39 views
Quartz job does not run with autofac and a constructor with a service
I have the Quartz Job shown below
public class ExtractTradesJob: IJob
{
private ITradeExtractor _tradeExtractor;
public ExtractTradesJob(ITradeExtractor tradeExtractor)
...
1
vote
1answer
48 views
Show next job execution scheduled time
I was wondering if Quartz.Net has a way to tell (or better write in the logs) on the next execution... I mean, I have got a job that runs at 10:00 AM and it's scheduled to run every two hours... is ...
0
votes
1answer
36 views
Running Quartz.NET for a specific job every 8 hours starting from 07:00 AM
Till today I've used Quartz.Net to run cron jobs, for example, every 5 minutes and so on. now I've been asked to run a specific job every 8 hours starting from 07:00 AM. This means that there'll be 3 ...
2
votes
1answer
78 views
Access to the scheduled jobs in Quartz when on many instances
Imagine I have a microservices to schedule a reminder. It will be scaled to 3 instances of that microservice and more if need. They share 2 endpoints -> POST(SheduleReminder) and POST(...
0
votes
0answers
130 views
How to create multiple jobs in Quartz/Hangfire dynamically using MVC C#?
I am new to Quartz.net/hangfire. I have a requirement that I need to schedule multiple reports through UI by the client as per their convenient timing.
We have almost 30 clients, and each client has ...
0
votes
0answers
47 views
Unable to map dependency injection
Please go through the below scenario. This is based on C# .Net Web API.
I have to call GetMonthlyData() which is located in BL layer. BL Layer related dependencies are initialized in the Controller ...
0
votes
0answers
39 views
How to get service using Dependency Injection (Autofac) in Quartz.Net Job
I am using Autofac for Dependency Injection and Quartz.net for scheduling the jobs. When I try to access the service from the Quartz.Net job using the below code, the job is not executed.
private ...
0
votes
0answers
26 views
Could I trigger the SimpleTrigger after schedule start? Using .NET Core API with Quartz
I have demand for search database result and decide when the next schedule starts based on the result.
If could use ISimpleTrigger would be good.
But I only see this in the QuartZ documentation:
await ...
0
votes
0answers
11 views
With Quartz.net - using ADO Store & multiples instances running same job how to make sure only one instance executes the job and not all?
I have windows service which has one quartz job running every 30 min.
Now I am porting this windows service in containers and running multiple instances. It means there are multiple Quartz jobs also ...
0
votes
0answers
13 views
Triggers automatically went to error state in quartz
I am using a quartz version: '2.1.4' with the Postgres database.
when I working with local database jobs trigger working fine,
but when I went for remote database server triggers are automatically ...
0
votes
0answers
18 views
Is it possible to limit the number of misfires that are processed to one?
I have a job that I want to run every 60 seconds. I also want to ensure the following rules:
If the job is already running, don't run another instance
If a job is already running and another job is ...
0
votes
0answers
57 views
Running Quartz.net on another server
I have a Windows Forms application where users can define certain tasks to be scheduled, but I want to run them on another server. I was thinking that I could schedule the tasks using Quartz.NET with ...
0
votes
2answers
77 views
dependency injection of interface in Quartz.NET for Execute job
i use asp.net core and Quartz.NET
in need inject interface like this
to execute job
public class RemoveSmsSendQueueJob : IJob
{
private readonly ISmsQueueService _smsQueueService;
public ...
0
votes
0answers
89 views
DBContext disposed in background job by Quartz net core/
I have:
public class FlagsRepository: IFlagsRepository
{
MyContext _context;
public FlagsRepository(MyContext context)
{
_context = context;
}
...
0
votes
0answers
38 views
Why is my custom job not firing in Quartz windows service
I have a program that executes several tasks at a specific time everyday. I have refactored the application to run as a Quartz job using the Quartz windows service. When i start the Quartz Server ...
0
votes
1answer
33 views
Quartz trigger stacks up when first trigger is busy
I have a secondly trigger with WithMisfireHandlingInstructionDoNothing:
var trigger = TriggerBuilder.Create()
.WithIdentity("trigger1", "group1")
.WithCronSchedule("0/1 ...
0
votes
0answers
18 views
How to construct a CRON expression from a user entry form?
I need to construct a Cron expression based on some user entry in a form. The user would choose some values such as below and they will be any combination based on the values chosen from some pre-...
0
votes
1answer
12 views
Using Quartz to create a cron express for a task to run every 2 weeks on Thursday and Friday
Not sure if this can be done. The task would run every 2 weeks on Thursday and Friday for all months. I don't see anything exactly like this in Quartz.
1
vote
0answers
81 views
Could not load file or assembly 'Quartz, Version=3.0.7.0, Culture=neutral, PublicKeyToken=f6b8c98a402cc8a4'
I have a .NET Standard project in which i have installed Quartz.NET from NuGet package. I have to get all the types in this dll/assembly which implement a specific interface. I iterate over all the ...
0
votes
0answers
15 views
trigger task with quartz every day each odd week
I'm struggling to program a quartz trigger every day each odd week. That is:
first week, execute the job every day
second week, do not execute
third week, execute the job every day
and so on
What I ...
0
votes
1answer
30 views
Sophisticated Quartz Cron Expression
I want to create an expression every n months that starts from the current month just for this year. I'm not looking for permanent offset which iterates only from the specified month through the end ...
0
votes
0answers
58 views
Abp.Domain.Uow.IUnitOfWorkFilterExecuter is not registered
I'm trying to integrate quartz.net 3.0.7 and abp 4.8.0. By using the custom implementation of the JobFactory I'm able to resolve the constructor dependencies. But Still I'm getting the dependency fail ...