Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


vf360
  •  vf360
  • No customer Topic Starter
2019-07-03T20:04:47Z
On Windows Task Scheduler there was a feature which allowed you to add a random delay; so, for example, if I set a task to run at 10pm with a 5-minute delay it would run anywhere between 22:00 and 22:05. The closest thing I could find was the wait task but this isn't random - I don't want to manually keep changing the delay.
Sponsor
Forum information
Support
2019-07-03T21:03:20Z
Change the Job->Main window->Use run random value.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vf360
  •  vf360
  • No customer Topic Starter
2019-07-03T21:08:50Z
Originally Posted by: Support 

Change the Job->Main window->Use run random value.


If I wanted my task to run once every Wednesday between 22:10:00 and 22:19:00, how would that look like? I don't know what to put in the random value box.
Support
2019-07-04T07:34:24Z
Originally Posted by: vf360 

Originally Posted by: Support 

Change the Job->Main window->Use run random value.


If I wanted my task to run once every Wednesday between 22:10:00 and 22:19:00, how would that look like? I don't know what to put in the random value box.



Unfortunately that is random and there is no min and max. Just a probability. https://www.visualcron.c...job_-_main_settings.html 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Gary_W
2019-07-11T20:14:30Z
One way would be to start your job Wednesdays at 22:10:00.
- First task call a powershell script that generates a random number between 0 and 9 inclusive, then waits for than many minutes.
Then proceed with the next task.

Here's the simple powershell script:

#
#  Wait for a random number of minutes between 0 and 9
#
Start-Sleep -s ((Get-Random -Maximum 10)*60)
Scroll to Top