Questions tagged [quartz.net-3.0]

a pure .NET library written in c# and is a port of an open source Java job scheduling framework.

This is the third alpha of v3. With updates to API's and addition of CancellationToken support as well as IReadOnlyCollections more concisely.

24 questions
7
votes
1 answer

Quartz.net: How to create jobs using Dependency Injection

I am trying to execute a Quartz scheduler job in .NET with a non-empty constructor and I try to use the default Dependency Injection of .NET to supply the dependencies. This is my job class which needs a dependency injection public class MyJob :…
5
votes
0 answers

Quartz.Net TriggerJob and wait for execution

I need to manually invoke some Quartz.NET jobs and wait for them to complete. Please see the simplified sample code below: [HttpPost("[action]/{jobKey}")] public async Task StartJob(string jobKey) { await…
Cosmin Vană
  • 1,562
  • 12
  • 28
5
votes
1 answer

Getting Quartz.Simpl.JsonObjectSerializer error while trying to use Quartz.NET with oWin

I am receiving the following error while I try to call a controller on my project which uses oWin and Quartz.Net 3.0.7 with Autofac . { "Message": "An error has occurred.", "ExceptionMessage": "An error occurred when trying to create a controller of…
pantonis
  • 5,601
  • 12
  • 58
  • 115
5
votes
1 answer

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"] =…
user156888
4
votes
1 answer

How to run one instance of a job at one time in QuartZ?

I want to implement the Quartz.Net in my C#.Net project. I am syncing 1 FTP and downloading all file every 10 minutes. Once I downloaded every file, I am going to process them all. If there are be more files, it will take more time than 10 minutes.…
4
votes
0 answers

quartz.net setting trigger_state to ERROR, can't figure out why

I have Quartz persisting to SQL server. I have not had this in my test environment, but now I moved to production and it is happening. Now the job runs once and results in the trigger being set to ERROR. I don't see any reason why. My job looks…
bschulz
  • 191
  • 2
  • 12
2
votes
1 answer

Why does Quartz .NET 3.0.7 scheduler hangs on DB unavailable error

I'm having an issue with a very simple non-clustered quartz server within a C# console application (run as windows service). It includes a single scheduler, that reads from and writes to a single database, meaning the same group of "qrtz_*"…
2
votes
1 answer

What is best practice for calling async method from Quartz.NET Job Execute?

I'm converting previous synchronous Quartz.NET 2.0 jobs to the new async Quartz.NET 3.0 framework and I was curious what the best practice was for dealing with the results of calling another async method that you need the results from? In my…
snappymcsnap
  • 2,050
  • 2
  • 29
  • 53
2
votes
1 answer

VS build fails complaining "unable to locate repository containing directory,,,"

I have recently downloaded the latest Quartz.NET (3.0.7) which is maintained using git (I guess). I downloaded the zip file and I intend to use it in a small task. I don't want to commit it back and I don't need it to be pointed to the git…
tete
  • 4,859
  • 11
  • 50
  • 81
2
votes
1 answer

Manually triggering a job not working

Using Quartz.Net I want to manually trigger a job without a schedule (for now). However the job runs on startup (which I don't want), then fails to respond to a manual trigger (main problem). private IScheduler _scheduler; public void…
wonea
  • 4,783
  • 17
  • 86
  • 139
1
vote
1 answer

Manually triggering and waiting for Quartz.Net job

We've just upgraded from Quartz.Net 3.2.4 to 3.3.3 and one of our integration tests unfortunately has broken. We're trying to test a Quartz job and the way the test did it was getting an instance of the job via the ServiceProvider and calling…
1
vote
1 answer

How to detect when a job was canceled in Quartz.net?

I'm using Quartz.net 3.x, and following what little documentation I could find on the subject, I've implemented the ability for my job to be canceled, like this: public class MyJob : IJob public async Task Execute(IJobExecutionContext context) …
Master_T
  • 7,232
  • 11
  • 72
  • 144
1
vote
1 answer

Google Cloud Pub/Sub Publisher Lifecycle

I'm running a Cloud Pub/Sub PublisherClient instance as a Singleton in an ASP.NET web application (.NET Standard 2). Does this retain a persistent HTTPS connection to the specified Cloud Pub/Sub Topic and should I call the ShutdownAsync method…
1
vote
0 answers

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…
Raghu
  • 699
  • 7
  • 14
1
vote
1 answer

Why i can't initialize quartz.net adoJobStore with oracle?

I'm trying to setup quartz.net AdoJobStore with oracle. I have a valid schema with tables for quartz. But every time i'm facing the same Exception "Could not Initialize DataSource: default" at the last line of this code. NameValueCollection…
Nimer Awad
  • 3,967
  • 3
  • 17
  • 31
1
2