Multiple time triggered jobs fail if queued at the same time

Issue

If there are more than 1 time triggered jobs configured in powerJobs Processor that are triggered at the same time they begin to fail with the error

2021-08-27 09:08:00,009 [DefaultQuartzScheduler_Worker-7] ERROR coolOrange.VaultServices.Vault.VaultServiceTryExtentions - Failed to add the job 'TimeTriggeredJob' to queueSystem.NullReferenceException: Object reference not set to an instance of an object.   at .?.get_JobService()   at coolOrange.VaultServices.Vault.VaultServices.VaultServices.AddJob(String type, String desc, IEnumerable`1 jobParams, Int32 nPriority)   at coolOrange.VaultServices.Exceptions.Util.?.?()   at coolOrange.VaultServices.Exceptions.Util.TryReturnException[TResult,TException](Func`1 func, TException& outException)

Cause

This issue is caused by the time triggered jobs trying to execute the same method at the same time

Solution

Change your *.settings file so that the jobs are triggered at least 10 seconds apart from another. for example one job should be triggered every minute and another job every 1:15 minutes.

See Also