Questions tagged [quartz.net]

1

votes
0

answer
412

Views

Quartz.Net Triggers firing more then once at the same time

I am currently working on an application, where I use the Quartz Scheduler for scheduling jobs to send an email containing some log data. I currently have 9 triggers on a host server for testing, that start firing at 08:00 and then each hour till 16:00 Mon to Fri. However I have a problem with my...
Carsten
1

votes
0

answer
82

Views

Worker Thread process settings for Asp.net core application with Quartz.net scheduler on nginx server

I have developed asp.net core web application with scheduler quartz.net and deployed the same scheduler sample on nginx server. It is working fine. Whenever we deploy Quartz.net on IIS, we set Start Mode = AlwaysRunning in General tab and Idle Time-out(minutes) = 0 in Process Model. So that it will...
Riddhi
1

votes
1

answer
42

Views

JsonConvert within Quartz.net job failing

I have a windows service that utilizes quartz.net to compares accounts in 2 different systems on a schedule and syncs the changes from one to the other. I can not seem to get a simple rest call to work because serializing the json is failing. No exception is thrown but the json string is empty. priv...
Christopher Kelly
1

votes
1

answer
267

Views

Quartz.Net with XmlPlugin, use Misfire with overwrite-existing-data

I'm using Quartz.Net (v 3.0.1) for the first time, with the XML Plugin to schedule the jobs and triggers from a XML file. I need in particular two features: To use the misfire policy, for example FireOnceNow for a certain job scheduled with a cron trigger that had a misfire To load at run time oth...
luke88
1

votes
1

answer
120

Views

MassTransit and Quartz.net - How to populate lots of scheduled jobs

I have been looking at using MassTransit's Quartz.Net (using AdoJobStore) implementation to schedule messages send/publish for future and all of this works fairly smoothly. The bit where I am stuck is, as a part of the production deployment, I need to set up a lot of 'Scheduled Messages' to be issu...
Cee Mah Four
1

votes
1

answer
363

Views

Call service from Quartz Task

I'm using Quartz.NET. https://www.quartz-scheduler.net/ Could I call other service from myTask? I will need my context because I need to update my database. And I don't know how catch the context. All example that I've found about Quartz library, they are very simple like print in console public cla...
Mario Erro
1

votes
0

answer
37

Views

Quartz job going into Error state on adding a new job while some instance running with old code

I have implemented Scheduler quartz with .net and having an HA environment where multiple instances of scheduler are working. While upgrading my instances with a new code having new jobs created, the newly added job goes into ERROR state because of implementation of clustering, it sometimes fires on...
Sumit Gupta
1

votes
0

answer
38

Views

Can jobs be scheduled in quartz.net without access to the assembly containing them?

Does anyone know of a way to schedule jobs in Quartz-Scheduler.Net without passing in a handle to the type containing the job but rather just the full name of the assembly and type as a String? What I am hoping to do is use Quartz scheduler to run jobs in a non-interactive service, while a separa...
Rick Chapman
1

votes
1

answer
71

Views

How to create a windows scheduler job using asp.net mvc web app from cron expression?

I have a question is there any way to create windows scheduler job using ASP.NET MVC web app from my cron expression (string). I have generated this cron expression using a jQuery plugin. After generating cron expression string I need to schedule a job which has to be executed an .exe file on server...
sridharnetha
1

votes
0

answer
54

Views

Execute a job on 5th Working Day of month

I am using Quartz.net to schedule my jobs. I need to run a few jobs based on nth working day of a month. E.g., 5th Working Day of every month. So, if 1st of the month is a Tuesday, the schedule should run on the following Monday. The Java version of Quartz does seem to have something similar, but c...
Raghu
1

votes
1

answer
82

Views

Quartz.net can't connect to Postgres DB

Here is my config: ['quartz.jobStore.dataSource'] = 'default', ['quartz.jobStore.tablePrefix'] = 'QRTZ_', ['quartz.jobStore.driverDelegateType'] = 'Quartz.Impl.AdoJobStore.PostgreSQLDelegate, Quartz', ['quartz.dataSource.default.provider'] = 'Npgsql', ['quartz.dataSource.default.connectionString']...
1

votes
1

answer
37

Views

Send multiple emails simultaneously

I have a WebApi project with a list of scheduled emails using Quartz.Net (embedded, not Windows service) which scheduled daily at 9 am. I want it to be simultaneously. Therefore I added QueueBackgroundWorkItem. public override async Task ExecuteJob(IJobExecutionContext context) { foreach (var user i...
AppeShopper
1

votes
1

answer
43

Views

How to test a Date against Cron Expression

I need to test if a certain date matches a cron expression using Quartz.Net. I'm trying to get the below code to work, but fail. // The data I'm testing is Dec 4, 2018 which is a Tuesday. var date = new DateTimeOffset(2018, 12, 4, 0, 0, 0, TimeSpan.FromHours(0)); // Expression must define every mond...
Werner
1

votes
0

answer
43

Views

How to get Quart Next_Fire_Time in human readable format with ASP.Net

I'm using Quartz Scheduling Framework 3.0.7v for my ASP.Net application. This is the code that I used to save new job in my application. #region SetProperties public static NameValueCollection getProperties() { var properties = new NameValueCollection { // json serialization is the one supported und...
chan
1

votes
1

answer
370

Views

How to handle a recurrent job with a reminder in Quartz.NET

I'm using Quartz.NET and am facing the following task: Schedule a job to be fired every 10 minutes, with a reminder 1 minute before each occurrence. Do you know if it's possible to design a trigger to do that? I'd like to avoid if possible to handle 2 triggers (one for the reminders and one shifted...
Vinzz
1

votes
1

answer
227

Views

How do I inject my repositories/interfaces in a class which requires an empty constructor?

In my controllers, I access my repositories like so: private readonly IProjectRepository projectRepository; public ProjectsController(IProjectRepository projectRepository) { Check.Require(projectRepository != null, 'projectRepository may not be null'); this.projectRepository = projectRepository; } [...
KieselguhrKid
1

votes
1

answer
493

Views

Help and advice needed working with Quartz.NET NthIncludedDayTrigger

I've started using Quartz.NET recently, and so far, it's been really helpful. Now, I'm trying to use it to create a job that runs once a month using a NthIncludedDayTrigger (I want to use the NthIncludedDayTrigger as eventually I will be specifying a calendar to exclude weekends/holidays). To fa...
Graham
1

votes
1

answer
423

Views

Quartz.NET auditing

I'm going to be using Quartz.NET for a Windows Service I am creating. I require all jobs carried out to be audited into a separate table (QRTZ_AUDIT) after completion or after failure, but is there a built in way of doing this? I could simply manually open up connections to both the jobs table and...
Chris
1

votes
1

answer
417

Views

How can I use a property on my Job instead of JobDataMap dictionary in Quartz.NET?

I am working on a Windows service which needs to schedule tasks whenever one of it's web services is called. This could happen hundreds of times per second in a worst case scenario. The task needs to wait a period of time, typically a minute or two, then call a method passing a parameter. We tried t...
andrej351
1

votes
1

answer
667

Views

Using Quartz.NET for multiple pages/applications in project

I'm creating a project that is utilizing Quartz.NET (with ADO.NET DB storage). There is the core component, i.e. the component that executes jobs (console application at the moment, will be a Windows Service), plus multiple web forms where users can add jobs and edit job (edit the datamap values to...
Chris
1

votes
1

answer
1.1k

Views

Quartz.Net ZeroSizeThreadPool high CPU usage

For some reason when I configure and start the ZeroSizeThreadPool Quartz.net scheduler as below, the CPU usage is very high making the computer unresponsive... Does anyone have any idea why this would be happening and how to fix the problem? TIA. var properties = new NameValueCollection(); propertie...
Dean Kuga
1

votes
1

answer
921

Views

Quartz .Net architecture question

Here is the scenario. I have an application that can be in constant connection with a server for multiple reasons. There are three general sets of objects that I need to get from or post to a webserver. Business Data Objects. This is essentially data that gets pulled down from the server to client...
tc44
1

votes
2

answer
478

Views

Quartz on a lightly loaded server

I have several important Quartz events that MUST go off at specific times of the night. Lately I have been noticing that not all the events are run. I have a feeling that overnight our server load is very light (ie. zero users) and that the web server kind of goes to sleep, and hence so does Quartz....
Julie Rogers
1

votes
1

answer
167

Views

Questions regarding Quartz.net

Please help me clear the following doubts. 1) I am using the GetScheduler() method to assign the scheduler to a local variable. Does the scheduler automatically starts when GetScheduler() called? If yes,how does the scheduler starts if there is a persistent job available. Who is calling GetScheduler...
logeeks
1

votes
2

answer
1.6k

Views

what is the correct way to clear quartz.net ramjobstore without re-starting app in c#

If there is a way to do this , can I also confirm by viewing the ramstore before and after clear. How can we view the contents of the ramstore programmatically ? In my case I am reading all job and trigger info from file. On some custom event I need to stop the scheduler and start all over again wit...
Gullu
1

votes
2

answer
1.6k

Views

Quartz.net - “Job's key cannot be null”

I'm trying to schedule a job on a remote scheduler using the following code: NameValueCollection properties = new NameValueCollection(); properties['quartz.scheduler.instanceName'] = 'RemoteClient'; // set thread pool info properties['quartz.threadPool.type'] = 'Quartz.Simpl.SimpleThreadPool, Quartz...
Ben Foster
1

votes
1

answer
673

Views
1

votes
4

answer
843

Views

C# Quartz Race Condition

I am automating some tasks on my website, but I'm currently stuck. public void Execute(JobExecutionContext context) { var linqFindAccount = from Account in MainAccounts where Account.Done == false select Account; foreach (var acc in linqFindAccount) { acc.Done = true; // stuff } } The issue is that...
mtnoob
1

votes
1

answer
632

Views

Can Quartz.NET (2.x) with SQL Persistence Be Used Across Multiple Servers

I'm new to Quartz.net, and am currently using the 2.x version - I'm just trying to work out if its possible to use the quartz scheduler across multiple servers, all pointing at the same database. My main motivation for this is for a fail-over mechanism, but also to spread the load. Thanks Matt
Matt Whetton
1

votes
1

answer
987

Views

Quartz.NET trigger: run once in a specified interval

I'm using the Quartz.NET library in a Windows service to run a daily job among others. I'm using AdoJobStore. Basically I want my job to be executed once any time between midnight and 1AM for example. So if the service was stopped at midnight and someone starts it at 00:30 I want the job to be execu...
Ioana Marcu
1

votes
1

answer
1.2k

Views

Quartz.NET job configurared to run once daily works the first day but fails to fire on subsequent days

I've configured quartz.net within my asp.net application and I have a job set to run daily at 1am. If I change the job-config.xml file to have the job run in 2 minutes time, the change is automatically picked up without restarting the app-pool, and the job is fired off. However, if I revert the cha...
CraigM
1

votes
1

answer
962

Views

Error when using entity framework library in Quartz.NET project

I am writing a Quartz.NET scheduler application which obtains some data from an entity framework library. When Quartz.NET fires the job, my log files show the following error, despite app.config files being present in the output directory for each of my DLLs. The specified named connection is either...
Nick
1

votes
2

answer
764

Views

Quartz.NET not triggering when certain code is in a method

I'm trying to set up Quartz.NET in an Azure worker role for scheduling a daily events. After much trial and error, I've found that the inclusion of one line of code within the target method is causing the event to not get triggered at all Building off the Quartz.NET example, I have an IJob class the...
Overflew
1

votes
2

answer
1k

Views

Quartz.net - fire trigger in custom time

I have array of datetimes(about 5000 elements) and want to execute a job on each of these datetimes. Datetimes in array are custom ones, not periodical, so I cannot use CronTrigger and others. Is there a simple way to create a trigger which will fire on given times? Yes, I know that I can to start a...
Sergey
1

votes
2

answer
1.6k

Views

Use System.Threading.Timer or Quartz in an ASP.NET

I want my ASP.MVC application to function as a scheduler for background tasks. The HttpApplication-subclassed class has the following code: public class MvcApplication : System.Web.HttpApplication { private Timer Timer; protected void Application_Start() { if (Timer == null) { TimerCallback cb = On...
Kevin Le - Khnle
1

votes
2

answer
794

Views

Quartz.NET vs JAMS vs?

We are currently using Quartz.NET 1.1. (I see that Quartz.NET 2.0 was released a couple of weeks ago) 1.) Has anyone personally used both Quartz.NET and JAMS? If so, which was the 'better' (easy to implement, easy to configure, reliable) of the two? 2.) Has anyone migrated from Quartz.NET 1.1 to Q...
Glen J Fergo
1

votes
1

answer
3.7k

Views

Quartz .NET job-type configuration issues

I've been dumbfounded by what I suspect is an oversight on my part in the setting up of a Quartz .NET configuration file. I've searched the forum for similar posts, with this post 'quartz.net from config xml in asp.net' being the most relevant, but unfortunately it has not helped. I'd appreciate a...
Chima Osuji
1

votes
3

answer
1.4k

Views

how to access any job properties using NameValueCollection in Quartz.Net?

i have a big project about Quartz.net. i have been created some job to make some tasks. So i have been made a summary project to understand me. i have a job. i want to parse some values to job's properties. while execute time, job needs to these properties. But i can not do that. Please dont say 'wh...
loki
1

votes
2

answer
497

Views

Guaranteeing Quartz.NET Triggers only fire events once even with many instances

The title is kinda wacky, but I'm attempting to figure out a workaround for AppHarbor potentially firing off multiple instances of my background application. This application pushes critical events to my server on a basic schedule using Quartz.NET. However, I cannot guarantee there is only one insta...
tamaslnagy
1

votes
1

answer
1.5k

Views

Quartz .NET job execution to call existing class method

I have an existing C# ASP.NET application with a user interface and various buttons to initiate actions. The actions make synchronous method calls on a class which is a singleton and I'll call this class ServiceLayer. This layer also initializes a data model. I want to schedule some of the actions...
sdbol

View additional questions