I created a job that would set a flag on startup, wait 5 minutes, and reset the flag again - for other jobs to check to be sure the system has finished initializing before they attempt to run.
However, I see that my 5 minute wait is not really waiting for 5 minutes (I've removed log messages not relevant to this issue):
10/12/2010 8:06:48 PM Info Job started: Set and Reset Startup Pending Flag
10/12/2010 8:06:48 PM Debug Server certificate read
10/12/2010 8:06:48 PM Debug VisualCron - Server starting on port: 16444
10/12/2010 8:06:48 PM Info Task started: Set Startup Flag (1)
10/12/2010 8:06:49 PM Debug Saving Variables
10/12/2010 8:06:49 PM Debug Saving Variables
10/12/2010 8:06:49 PM Info Variable 'startup_pending_flag' was updated to: 1
10/12/2010 8:06:49 PM Info Task completed: Set Startup Flag (1)
10/12/2010 8:06:49 PM Info Task started: Wait 5 minutes (4)
10/12/2010 8:07:29 PM Debug Saving Jobs
10/12/2010 8:10:40 PM Info Task completed: Wait 5 minutes (4)
10/12/2010 8:10:40 PM Info Task started: Reset Startup Flag (5)
10/12/2010 8:10:40 PM Debug Saving Variables
10/12/2010 8:10:40 PM Debug Saving Variables
10/12/2010 8:10:40 PM Info Variable 'startup_pending_flag' was updated to: 0
10/12/2010 8:10:40 PM Info Task completed: Reset Startup Flag (5)
10/12/2010 8:10:40 PM Info Job completed: Set and Reset Startup Pending Flag
The wait is actually slightly less than 4 minutes. Is this to be expected? How does VisualCron' Wait task track time?
Thanks,
Rebeccah