ISchedulerGetCurrentlyExecutingJobs Method

Quartz.NET 3.0 API Documentation
Return a list of IJobExecutionContext objects that represent all currently executing Jobs in this Scheduler instance.

Namespace:  Quartz
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
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)"]

Remarks

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.

See Also

Reference