On my production server, 2008R2 running .net 4.5 and vcron 6.2.2, I have an FTP download task and file copy task in one job.
For both tasks, the tasks are configured to not overwrite if the file already exists.
I download a file that does not already exist. I then use a write file and a an email task to output the number of downloaded files and the list of files.
# files downloaded: {TASK(a88ce418-4413-4f76-8dad-375c2648ad60,Result.NoDownloadedFiles)}
time for donwload: {TASK(a88ce418-4413-4f76-8dad-375c2648ad60,ExecutionTime)} seconds
files downloaded:
{TASK(a88ce418-4413-4f76-8dad-375c2648ad60,Result.DownloadedFilesNames)}
Everything is fine.
I then execute the download task again. There are no files that DO NOT ALREADY EXIST, so no files are downloaded. Confirmed.
However, the file write task and the email task both report the same results from the last run where a file was actually downloaded. This behavior repeats until the next time a new file is downloaded that does not already exist.
The File copy task and its associated file write and email tasks do the exact same thing.
I looked at the logs the stdout and results on the ftp and file copy are correct. The tasks are doing the correct work, just not correctly updating their results information/variables apparently.
I spent may hours debugging the following problem and attempting to recreate it, unsuccessfully, on several different servers with and without .net 4.5.
Finally, I deleted the ftp download task and recreated it. I left the offending file copy task alone. The behavior has now gone away on the ftp download executions and I get the correct results form the file write and email tasks. The file copy task continues to exhibit the incorrect behavior.
Has anybody run into this kind of behavior (the results on the task not updating correctly)? While simply deleting and recreating the task resolved the issue this time, I am worried about this issue arising in other jobs.
Any thoughts on this?
Thanks,
Chuck