We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
When trying to schedule many jobs at the same time, the following exception is bursting and consequently taking a long time to finalize the schedule:
MongoDB.Driver.Core.Operations.MongoBulkWriteOperationException em System.Private.CoreLib.dll
Follow the example of building jobs, the code snippet is inserted in a for loop, assigning the respective keys dynamically:
var triggersAndJobs = new Dictionary<IJobDetail, IReadOnlyCollection<ITrigger>>(); var jobBuilder = JobBuilder.Create<Scheduler>() .WithIdentity(jobKey, GroupName) .RequestRecovery(true)) .Build(); var triggerCollection = new List<ITrigger>{ TriggerBuilder.Create() .WithIdentity(triggerKey, GroupName) .StartAt(time.ToUniversalTime()) .WithSchedule(SimpleScheduleBuilder.Create().WithMisfireHandlingInstructionFireNow()) .Build() }; triggersAndJobs.Add(job, triggerCollection); await scheduler.ScheduleJobs(triggersAndJobs, true);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi!
When trying to schedule many jobs at the same time, the following exception is bursting and consequently taking a long time to finalize the schedule:
MongoDB.Driver.Core.Operations.MongoBulkWriteOperationException em System.Private.CoreLib.dll
Follow the example of building jobs, the code snippet is inserted in a for loop, assigning the respective keys dynamically:
The text was updated successfully, but these errors were encountered: