IJobServiceRunJobAsync Method (Guid, IReadOnlyDictionaryGuid, TaskInt64, RelatedJobsIncludeKinds)

Runs a job and its related jobs sequentially but asynchronously.

Namespace:  Dundas.BI.Scheduling
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
Syntax
Task RunJobAsync(
	Guid jobId,
	out IReadOnlyDictionary<Guid, Task<long>> jobRunIdTasks,
	RelatedJobsIncludeKinds relatedJobsIncludeKinds
)

Parameters

jobId
Type: SystemGuid
The ID of the job.
jobRunIdTasks
Type: System.Collections.GenericIReadOnlyDictionaryGuid, TaskInt64
When the method returns, dictionary containing a task which returns the ID of the requested job run once it has started.
relatedJobsIncludeKinds
Type: Dundas.BI.SchedulingRelatedJobsIncludeKinds
The include kinds of related jobs. Related jobs will only be retrieved for a non-tenant job.

Return Value

Type: Task
A task representing the asynchronous operation.
Exceptions
ExceptionCondition
ArgumentExceptionjobId is Empty.
NotFoundExceptionThe original job could not be found.
JobAlreadyRunningExceptionThe job is already running.
InvalidOperationException

The job has been deleted.

-or-

The job is disabled.

NoPrivilegeExceptionThe caller does not have permission to run the job.
InvalidSessionExceptionThe caller context is not associated with a valid session.
AggregateExceptionOne or more errors occurred.
See Also