Namespace: Quartz
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Task<IReadOnlyCollection<IJobExecutionContext>> GetCurrentlyExecutingJobs( CancellationToken cancellationToken = null )
Parameters
- cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
[Missing <param name="cancellationToken"/> documentation for "M:Quartz.IScheduler.GetCurrentlyExecutingJobs(System.Threading.CancellationToken)"]
Return Value
Type: TaskIReadOnlyCollectionIJobExecutionContext[Missing <returns> documentation for "M:Quartz.IScheduler.GetCurrentlyExecutingJobs(System.Threading.CancellationToken)"]
This method is not cluster aware. That is, it will only return Jobs currently executing in this Scheduler instance, not across the entire cluster.
Note that the list returned is an 'instantaneous' snap-shot, and that as soon as it's returned, the true list of executing jobs may be different. Also please read the doc associated with IJobExecutionContext- especially if you're using remoting.