quartz.net

Trigging Interrupt on all Quartz .NET IInterruptableJob

老子叫甜甜 提交于 2019-12-23 17:27:45
问题 I'm working with Quartz scheduler, and attempting to close all jobs on shutdown of the app. I have one specialty job that does a 'Hold' or 'Busy-wait', basically until it gets a condition it sits there waiting patiently. This job is new, due to a new integration point. The app is run as a service using Topshelf, and whenever we try to shutdown the service to upgrade it, now that this job is running, we have to end up restarting the server to get it to shutdown. Anyhow, here it gets weird, I

JobData is not persisted after each execution in Quartz.net

僤鯓⒐⒋嵵緔 提交于 2019-12-23 16:24:42
问题 I have a job where I want to keep track of the 50 latest runs. For some reason it doesn't seem like the state is stored in my simple prototyp: [PersistJobDataAfterExecution] public class ApiJob : IJob { private const string JobRunsKey = "jobRuns"; private const int HistoryToKeep = 50; private const string UrlKey = "Url"; public void Execute(IJobExecutionContext context) { var jobDataMap = context.JobDetail.JobDataMap; var url = context.JobDetail.JobDataMap.GetString(UrlKey); var client = new

MYSQL 5.5 Drop Primary Key

做~自己de王妃 提交于 2019-12-23 13:13:54
问题 I am upgrading my quartz.net version from 1.0.3 to 2.0.2 There is a migration script for database schema, which was was written for MSSQL, and I am trying to write a MYSQL version of it. However, I haven't been able to drop primary keys (which I need to). Original MSSQL version of script: ALTER TABLE BLOB_TRIGGERS DROP CONSTRAINT BLOB_TRIGGERS_PKEY; ALTER TABLE BLOB_TRIGGERS DROP CONSTRAINT BLOB_TRIGGERS_TRIGGER_NAME_FKEY; ALTER TABLE SIMPLE_TRIGGERS DROP CONSTRAINT PK_SIMPLE_TRIGGERS; ALTER

Quartz vs “Reactive Extensions”

限于喜欢 提交于 2019-12-23 12:18:54
问题 I am looking for a scheduling library for C# and for a long time I though the "only" option is Quartz.NET which is quite robust and work just fine. But when I found "Reactive Extensions" (RX - http://msdn.microsoft.com/en-us/data/gg577609) I realized that it can do Time-Related operations as well and have native .NET frontend. What are the limitations of Rx in terms of Time-Related operations? I need to fire tasks repeatedly in specific interval, after time period or so. And are there any

Quartz.NET scheduler.Interrupt(jobKey) is interrupting all active jobs

微笑、不失礼 提交于 2019-12-23 07:51:47
问题 Should the method only interrupt the job as defined by the jobKey? I've ran some tests and it seems to interrupt all of the active jobs currently running. I am using a restful web api to connect to the remote scheduler to create/interrupt/delete jobs. Api service code: public void DeleteJob(JobKey jobKey) { var scheduler = _clientQuartzScheduler.GetScheduler(); var executingJobs = scheduler.GetCurrentlyExecutingJobs(); if (executingJobs.Any(x => x.JobDetail.Key.Equals(jobKey))) { scheduler

What is exactly mean by 'DisallowConcurrentExecution' in Quartz.net

送分小仙女□ 提交于 2019-12-23 07:38:47
问题 I have a Quartz.net Job with the following definition. [PersistJobDataAfterExecution] [DisallowConcurrentExecution] public class AdItemsJob : IJob, IInterruptableJob { public void Execute(IJobExecutionContext context) { // Job execution logic, } } As I have decorated the Job with DisallowConcurrentExecution attribute. What I know about this attribute, we can't run multiple instances of same job at the same time. What is meant by multiple instances here.? Does the two jobs of AddItemsJob with

Quartz.Net Initializing Project

喜欢而已 提交于 2019-12-22 07:58:41
问题 I am new to Quartz.Net and I have been following this tutorial to do my first Job. I followed every step and started from zero 3 times but I cannot make this to work. When I run the project on Visual Studio I get this message from the cmd: Failed: Could not load file or assembly: 'HelloWorldDotNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. On Visual Studio output I get: 'HelloWorldQuartzDotNet.vshost.exe'

Quartz.Net Initializing Project

孤人 提交于 2019-12-22 07:58:09
问题 I am new to Quartz.Net and I have been following this tutorial to do my first Job. I followed every step and started from zero 3 times but I cannot make this to work. When I run the project on Visual Studio I get this message from the cmd: Failed: Could not load file or assembly: 'HelloWorldDotNet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. On Visual Studio output I get: 'HelloWorldQuartzDotNet.vshost.exe'

Could not load job assembly error in Quartz.NET

萝らか妹 提交于 2019-12-22 03:52:29
问题 I'm using Quartz.NET scheduler as a stand-alone windows service while from an ASP.NET app I sechedule jobs. I've a separate job assembly and i'm getting the following error Could not load file or assembly 'AV.Scheduler.Jobs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Here is my code, JobDetail jobDetail = new JobDetail("testJob", null, typeof(TestJob)); //created trigger which will fire every minute starting

Using quartz.net on medium trust hosting

a 夏天 提交于 2019-12-22 01:08:03
问题 I need scheduling functionality on my .NET MVC website and I came across Quartz.net library which can do exactly what I need. The problem is I'm running my site on a hosting (GoDaddy) and when I added Quartz.net 2.0.1 to my project I've got "that assembly does not allow partially trusted callers" exception. After some research I found out that many people have the same problem and some solved it by removing Common.Logging library from Quartz.net. I followed some of the advice and removed all