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


cstump
2013-07-30T12:23:11Z
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



Sponsor
Forum information
cstump
2013-07-30T21:24:15Z
Deleting the problematic task and recreating it seemed to work for a while. But by later in the day the same incorrect behavior has returned :(

Support
2013-08-01T13:08:35Z
Try using Active or PrevTask instead of the Task Id.

{TASK(Active,Result.NoDownloadedFiles)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2013-08-02T13:29:18Z
I already tried using PrevTask and got the same results. The results variables on the ftp and file copy tasks just arent updating.

This is what is in my Write File task.

Downloaded {TASK(PrevTask,Result.NoDownloadedFiles)} files at {DATEFORMAT(M/d/yyyy h:mm tt)}:
{TASK(PrevTask,Result.DownloadedFilesNames)}


Other jobs in this vcron instance are working fine and many of the tasks make use of the result variables on tasks in their respective jobs.
Support
2013-08-05T13:10:27Z
We tested this with 7.0.1 and could not reproduce this. What we did was to create a Job with two Tasks:

1. download
2. write file

In the file write Task I added this line:

{DATEFORMAT(yyyy-MM-dd HH:mm:ss)} - {TASK(PrevTask,Result.NoDownloadedFiles)}

Now, I ran this many times and between each time I changed the file mask which resulted in different amount of files. The log file was correctly updated.

I am not sure what is different in your case (maybe not the download Task is running every time?). Please test a sample job with this configuration.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top