Questions tagged [quartz.net]

1

votes
1

answer
553

Views

set the max of concurrent jobs Quartz.Net

In a service windows within a IScheduler object with a lot of jobs to run each time . But when you start the work of the CPU get 100 percent usage. I want to limit the concurrent jobs run to avoid excessive resource use . The objective would be possible to run about 3 processes at a time. More or le...
renefc3
0

votes
0

answer
2

Views

How to integrate Quartz.Net jobs that require “scoped” services injected in them (ASP.NET Core 2.0)?

I am trying to create some Quartz.Net jobs following my own answer from this question. However, if the job is fairly complex and required 'scoped' (services.AddScoped) services, the example does not work because jobs are created as singletons. If I change them to be scoped, the serviceProvider does...
Alexei
1

votes
1

answer
399

Views

Simple Injector - AddIdentity equivalent

I am using Simple Injector in an ASP.NET 5 app, and need to switch over my Identity registrations from the built in Microsoft DI. Currently, it looks like this; services.AddIdentity(o => { o.Password.RequiredLength = 6; o.Password.RequireNonLetterOrDigit = false; o.Password.RequireDigit = true; o.Pa...
Ciel
1

votes
5

answer
565

Views

Trying to call a method in Form from another class

I know this has been answered before but I am stuck. I have this class, public class Job : IJob { public void Execute(IJobExecutionContext context) { } } and I want to call this method which is inside another class: namespace MySync { public partial class Sync1 : Form { public void startSync() { /...
G90
1

votes
1

answer
203

Views

ServiceStack.Funq.Quartz cannot instantiating type?

ServiceStack.Funq.Quartz Sample Code is public class MyServices : Service { public object Any(Hello request) { return new HelloResponse { Result = 'Hello, {0}!'.Fmt(request.Name) }; } } public class HelloJob : IJob { private MyServices MyServices { get; set; } public HelloJob(MyServices myServices)...
ali
1

votes
1

answer
513

Views

quartz.net Support with .Net Framework

I have recently started working with quartz.net. I just want to know the Quartz.net Support with .Net Framework 4.5 and above versions. I have searched in Google but didn't get any relevant answers. Please advice me.
1

votes
1

answer
1.5k

Views

Schedule job with multiple triggers in Quartz.net

I need to run job on 2 different schedules (morning and afternoon). I know how to run it on one schedule, but not sure how to set it so 2 schedules trigger this job var saferWatchJobDetail = JobBuilder.Create().Build(); var swtriggerMorning = TriggerBuilder.Create().WithCronSchedule('0 10 6 ? * MON-...
katit
1

votes
1

answer
357

Views

Schedule multiple scheduled tasks using Quartz.net

I'm trying to set up 2 and more scheduled tasks to run 4 hours difference since when the first task stared. To do so I'm using Quartz.NET library like following: ITrigger firstTrigger = TriggerBuilder.Create() .WithIdentity('Trigger1') .StartNow() .WithCronSchedule('0 0 0/4 * * ?') .ForJob('Job1') ....
Jadin Stojadin
1

votes
1

answer
65

Views

Quatz.Net GetNextFireTime() returning the “wrong timezone”

I am currently working on a project in which I am using the Quartz Scheduler. I've been working on a feature that displays different details about jobs that are currently active, using the following method. public IEnumerable GetAllActiveScheduls() { var activeScheduls = new List(); try { IList jobG...
Carsten
1

votes
2

answer
527

Views

Migrating from Quartz.NET 2 to 3 Casting Error

My question is regarding the upgrade from Quartz.Net 2 to 3 in which now includes await/async methods. I have followed all the instructions in the migration document but I'm having an issue at the following initializaiton (marked line): public partial class BMOSSService : ServiceBase { private Eve...
Ray
1

votes
1

answer
188

Views

Quartz scheduler logs via log4net coming in wrong log file

I have two projects: one (MyApp.QuartzImplementation) where all initialization and quartz job related working is done while another project (MyApp.XYZApi) do other stuff. I have separate log4net logs files for each project. The problem I am having is that the scheduler related logs are coming in my...
Kamran Shahid
1

votes
1

answer
182

Views

Long time scheduler in C#

I'm trying to create a project with net core 2.0. Users can create reminders in distant future in my system (the reminder call weapi method in distant future). Reminders save in database (I choose the database now). Nuget-package Quartz.NET can create reminders in future. But what if server will be...
Galina
1

votes
2

answer
37

Views

Quartz Scheduler in my ASP.NET MVC application executes job only after refreshing the webpage/application at IIS server

So I am using Quartz Scheduler for my ASP.NET MVC application in order to schedule a job for writing a file. This job can be triggered hourly, daily, weekly etc depending on user requirements when he configures the job from a webpage. Code in this link: How to check if a particular job is running i...
Sahil Tiwari
1

votes
2

answer
1.8k

Views

Quartz.Net Thread Pools

I have quartz.net set up to run several scheduled jobs and several polling jobs. The polling jobs can consist of running code that can take 10 minutes. These jobs are queued from user actions (and so there could be a queue of x user actions). I have scheuled jobs that HAVE to run at that time. Howev...
1

votes
1

answer
647

Views

Quartz.NET Instance Handling

I have 2 instances which implements 2 different instance IDs in 2 different windows services as: //windows service 1 instance 1 properties['quartz.scheduler.instanceName'] = 'instanceName1'; properties['quartz.scheduler.instanceId'] = 'instanceID1'; //windows service 2 instance 2 properties['quartz....
Dhon Nuevo
1

votes
1

answer
1.6k

Views

Update Quartz.NET Job DLL without Service Restart

I just started with Quartz.net and I have it running as a service. I created a Job and moved the resulting .dll to the Quartz folder and added a new entry to the jobs.xml file to kick it off every 3 seconds. I updated the job .dll but it is in use by Quartz (or is locked). Is it possible to update t...
Brian Boatright
1

votes
1

answer
1.7k

Views

How do I make Quartz.NET run jobs from separate assembly?

I am new to Quartz.NET so bear with me please. I would like to run Quartz.NET as a stand-alone service which runs jobs. I would like to create a different assembly containing all the jobs I need to run and have Quartz configured to run these jobs from my assembly. Thus, whenever I create a new job,...
Yossi
1

votes
3

answer
1.1k

Views

Quartz.net - How can I run a job every year with a reminder 30 days before?

I've decided to give Quartz.net a go. Now I am trying to figure out what is the best way to implement its triggers. What should I do if I want to schedule a job with a certain interval, let's say every X weeks, months or years and I want to setup a trigger which executes a certain amount of time be...
LeftyX
1

votes
2

answer
2k

Views

Quartz.Net multiple calendars

Using Quartz.Net and have a need for the same trigger to have multiple Calendars, whilst this isn't possible I'm looking for suggestions of how to achieve similar functionality. For example I want to run the job in X minutes and exlude 9-10am every day but be able to block out other times during the...
ServerMonkey
1

votes
1

answer
598

Views

How to write this cron expression?

How to write cron expression (for quartz.net, but that shouldn't matter) that would trigger: every week day from 8am to 7pm once in half an hour
Arnis Lapsa
1

votes
4

answer
1.3k

Views

Quartz.NET: is it used by any known company?

I am thinking about adopting it. The website somewhat confusing me saying it targets only .NET 1.1, which is way out-of-date. So I am wondering if it's actually actively used product or just another port similar to Hadoop.NET, existing but barely used. This question Is Quartz.Net still being update...
Schultz9999
1

votes
1

answer
303

Views

the questions about quartz.net ' trigger

i know ,in quartz.net ,change a old trigger like below, scheduler.RescheduleJob(oldname,oldgroup,newtrigger); it need have not the same name with old trigger name, but i need to change trigger with the same trigger name,is there anyway to solve?
Caizhi yu
1

votes
1

answer
2.4k

Views

Possible to fire a weekly trigger immediately then on a weekly basis?

I am wondering if it is possible to use weekly trigger to fire once and then go to a weekly schedule Trigger trigger = TriggerUtils.MakeWeeklyTrigger( 'TriggerName', dayOfweek, timeOfDay.Hours, timeOfDay.Minutes); So I basically want when my service first starts my trigger to fire and run it's job....
chobo2
1

votes
2

answer
2.4k

Views

How to check if all jobs are finished running before shutdown? - Quartz.net

I am wondering say I have a job that is executing and the windows service it is running in has been told to stop. How can I delay this and wait till all the jobs are finished and quartz.net has shutdown. I only see like scheduler.Shutdown(); and scheduler.IsStarted
chobo2
1

votes
1

answer
2.9k

Views

Type initializer for Quartz.net throws an exception

I'm taking a look at Quartz.NET 2.0 beta 1. I'm using the first example code, in my own project, my code is: class Program { static void Main(string[] args) { // First we must get a reference to a scheduler ISchedulerFactory sf = new StdSchedulerFactory(); IScheduler sched = sf.GetScheduler(); // co...
RickardP
1

votes
3

answer
2.4k

Views

Implement quartz.net through configuration

I need to shedule some task through the Quartz.net. I want to configure the trigger and jobdetails through the config file. Is there any way?
Pankaj Saha
1

votes
1

answer
779

Views

Quartz.net firing previously scheduled jobs

I just started using Quartz.net. I wrote a little routine to schedule multiple jobs. I am really not sure if I coded this properly. Hopefully there are some Quartz.NET experts that can help. I have three questions: Does my trigger setup look correct? I would like to run a job everyday at 9AM and 3PM...
TheWebGuy
1

votes
2

answer
1.7k

Views

How to get Quartz.Server.exe to run my ASP.NET jobs

I have an ASP.NET website that generates documents. Each document takes a while to generate, and there are many document requests, so I am exploring the idea of using Quartz.NET to help pool the requests, persist them through restarts, and deliver them to users for a better experience. Quartz.Server...
tenfour
1

votes
1

answer
344

Views

With Quartz.Net, how do i find out how many times a trigger has fired

I'm using ADOJobStore with my scheduler and in the DB I can see columns that indicate how many times my trigger has fired. Is there someway to retrieve that data programmatically? I can't seem to find it as a property on the Trigger. var triggers = _scheduler.GetTriggersOfJob(jobDetails.Key);
yamspog
1

votes
1

answer
270

Views

Quartz.net Run 1 instance of a job with different JobKey and JobData

I have a hopefully a simple question to which i can't find the answer. If i schedule a Job of type LongRunningAndHeavyJob on demand (StartNow()) i dont know how long this job will run but it can be long (from 10 minutes to 60+ minutes) and is very CPU intensive. Because the end-users can start this...
Jordy van Eijk
1

votes
1

answer
24

Views

How to gracefully end a Quartz 3.0.x with ASP.NET Core 2.2 job in IIS?

I am trying to gracefully end a Quartz job which run in IIS. My code is as follows: the job [DisallowConcurrentExecution] public class TestJob : IJob { private ILoggingService Logger { get; } private IApplicationLifetime ApplicationLifetime { get; } private static object lockHandle = new object(); p...
Alexei
1

votes
1

answer
924

Views

Quartz.Net in Mono starting Threads freezes system

I am using Quartz.net in mono. When I create a scheduler like this: ISchedulerFactory quartzSchedulerFactory = new StdSchedulerFactory(); IScheduler quartzScheduler = quartzSchedulerFactory.GetScheduler(); in Quartz.Net, in the class SimpleThreadPool the following method is called: /// /// Called b...
Miguel Marques
1

votes
6

answer
730

Views

declaring a list with a generic stored in a variable

I want to go through a switch statement to determine what type to make something that contains a generic with. Below is a silly, but illustrative bit of code that shows what I am trying to do: Type tempType; switch(number) { case 0: tempType = typeof(int); break; case 1: tempType = typeof(bool); bre...
Xantham
1

votes
2

answer
1.8k

Views

Quartz.NET + SQLite Jobstore throwing JobPersistenceException

When adding or removing a job to/from the scheduler, Quartz sporadically throws a JobPersistenceException (following a preceding SQLiteException). Things that seem noteworthy: Quartz.NET 2.01 + System.Data.SQLite 1.0.66 (both latest version at time of writing just noticed that there is a binary pack...
Rev1.0
1

votes
1

answer
430

Views

Quartz.NET Job Lifetime

I'm using Quartz.NET and I'm having trouble finding documentation regarding the lifetime of a job. Is a new instance of the job class created each time the job is run, or will an existing instance be reused? What about if the job is currently running when the trigger fires again?
RMD
1

votes
1

answer
2.6k

Views

The difference between <group> element and <job-group> element in quartz_jobs.xml

I'm a newbie in Quartz.NET . I'm confused with the and element functionality. What is the different between and element inside element? Thank you in advance. MyJob MyJobs Logs a message to the application log JobScheduler/job-type> false true false MessageToLog Hello from MyJob MyJobTrigger M...
user2709630
1

votes
2

answer
2.4k

Views

Quartz.Net JobListener events not fired

I wrote a JobListener to keep track of Quartz jobs launched by a WPF app. The app creates a list of jobs, calls a BackgroundWorker that schedules all the jobs and registers the JobListener for each one of them. The JobListener is intended to update different lists that will be dynamically displayed...
xlecoustillier
1

votes
1

answer
2.2k

Views

RAMJobStore (quartz_jobs.xml) to AdoJobStore Data Move

My team and I are trying to figure out a way to 'load up' our Sql Server database with the Quartz.NET schema installed. For demo's, we've been storing our job-setups in .xml (quartz_jobs.xml). My question is : Is there a way to 'load up' the scheduling data from .xml (quartz_jobs.xml) (Quartz.Simpl...
granadaCoder
1

votes
1

answer
3.4k

Views

Get all triggers in Quartz.NET

I need to retrieve a list of all triggers in a Quartz.NET database so I can list information about them in a table. I want all triggers, regardless of whether they're running, waiting, acquired, or whatever. I'm only using a single scheduler name and a single group, so in my case this is basically a...
1

votes
1

answer
845

Views

Last Execution Time and Next Execution Time Not correct

I am using Quartz.net. I have configure job with attribute DisallowConcurrentExecution. I want single instance of that job execute. I have configured trigger that fire every 10 seconds but in some situation my job get more than minutes to complete. Once this happen I can not see Last Execution Time...
dotnetstep

View additional questions