This is still an issue. Whenever a try to create a job via de API if the job has a trigger where DayType is true the API takes a long time to respond and the CPU usage goes up significantly. If DayType is false, it works ok. Here is the sample code:
Dim trigger As TriggerClass = job.AddTrigger(TimeClass.TimeTriggerT.Custom)
trigger.Description = "Every weekday"
trigger.TTime.AllYears = True
trigger.TTime.AllMonths = True
trigger.TTime.AllDays = False ' These two are the trouble ones.
trigger.TTime.DayType = False ' These two are the trouble ones.
trigger.TTime.DaysIsBetween = True
trigger.TTime.DayBetweenStart = 0
trigger.TTime.DayBetweenStop = 4
trigger.TTime.Hours(0) = True
trigger.TTime.Minutes(0) = True
trigger.TTime.Seconds(0) = True
s.Jobs.Update(job)
Edited by user
2014-05-30T20:25:16Z
|
Reason: Not specified