T
Type of a job.
Platform Core .NET Assemblies API
ScheduleImmediateJob<T> Method
See Also  Send Feedback
Terrasoft.Core.Scheduler Namespace > AppScheduler Class : ScheduleImmediateJob<T> Method
jobGroup
The name of the group to which the job belongs.
workspaceName
Workspace in which class must be started.
userName
The user on whose behalf class will be started.
parameters
The parameters that will be passed to the class.
isSystemUser
System user flag. If true, Job will run on behalf of the user obtained from "System operations user" system setting.

Glossary Item Box

Plans a job for immediate one-time start of class.

Syntax

 
C#
 
 

Parameters

jobGroup
The name of the group to which the job belongs.
workspaceName
Workspace in which class must be started.
userName
The user on whose behalf class will be started.
parameters
The parameters that will be passed to the class.
isSystemUser
System user flag. If true, Job will run on behalf of the user obtained from "System operations user" system setting.

Type Parameters

T
Type of a job.

Remarks

In contrast to TriggerJob<T>(String,String,String,IDictionary<String,Object>,Boolean), the ScheduleImmediateJob<T> schedules job with next fire time set to now, while TriggerJob<T>(String,String,String,IDictionary<String,Object>,Boolean) triggers job immediately. As a result, delay between ScheduleImmediateJob<T> call and actual trigger fire time can be greater than one after calling TriggerJob<T>(String,String,String,IDictionary<String,Object>,Boolean).

If job with the same name within the same group already exists it will be recreated.

If trigger can not be fired immediately it will be fired as soon as possible.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.