Community forum

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


Vtwin996
2011-07-13T20:06:23Z
I see how to check for the existence of a file in a folder, but if this file is the result of an ftp transfer, how can I check that the ftp transfer is complete? In other words, how can I be sure the file is 'all there' before proceding to the next step?
Thanks!
Sponsor
Forum information
Support
2011-07-13T21:35:35Z
Originally Posted by: Vtwin996 

I see how to check for the existence of a file in a folder, but if this file is the result of an ftp transfer, how can I check that the ftp transfer is complete? In other words, how can I be sure the file is 'all there' before proceding to the next step?
Thanks!



You could use a File Trigger on another Job watching that folder. By default, a file trigger is set to Trigger "when file is released" (not locked by the system) which it normally is when it is completed. Set "put job in queue" on the file trigger Job and then process that file in that job.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Vtwin996
2011-07-15T21:44:29Z
Originally Posted by: Support 

Originally Posted by: Vtwin996 

I see how to check for the existence of a file in a folder, but if this file is the result of an ftp transfer, how can I check that the ftp transfer is complete? In other words, how can I be sure the file is 'all there' before proceding to the next step?
Thanks!



You could use a File Trigger on another Job watching that folder. By default, a file trigger is set to Trigger "when file is released" (not locked by the system) which it normally is when it is completed. Set "put job in queue" on the file trigger Job and then process that file in that job.



Henrik,
Thanks for the reply. I'm a little confused. Why do I need 2 jobs for this? I guess I'm not understanding how the file trigger works. Also can you explain what setting 'put job in queue' does? Again, it seems like I could do this in one job. Under trigger, look for the creation of the new file and then act on that file in subsequent tasks in the same job. Thanks.
Support
2011-07-16T09:41:58Z
If you were thinking about downloading files *with* VisualCron through the FTP Task you probably need two Jobs. The reason is that you probably want your download to be scheduled in a timely interval.

You probably don't want two triggers (time and file trigger) in the same Job. That is why you need two Jobs.

"Put Job in queue" just enables a Job that is fired while it is already running to be queued to be run when the first Job has completed. This could be interesting if you have file trigger which are firing with many files at once and you want to process each file in some way.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top