Skip to main content
Question

Directory watch with schedul option


I'm using directory watch with FME server 2019 to trigger a workspace when a file is updated. the Directory watch is set to watch the directory every days. For now, when there is an update, It run the workspace at noon, and i wish to wait till midnight before the workspace start. Is there a way to add a time option for when the directory watch start ? or a waiting time before the workspace start ?

Thank's

3 replies

david_r
Celebrity
  • July 16, 2019

In your case I would not use the directory watch notification (which I find most useful for very frequent checks), but a regular scheduled job that is launched every day at midnight.


  • Author
  • July 16, 2019

Thank you @david_r for your quick answer, but I’ve already thought about it. The thing is that, I have a workspace that takes up to 6 hours to complete and uses a lot of our resources. The directory I watch is updated every 2, 3, or 4 weeks, without it being done on a regular basis. For these reasons, I wouldn’t want to start the workspace every night since, in the best case, it would run 13 times out of 14 for nothing. I also thought to do a scheduled job every week, but when the file is updated, my organization would like it to be processed within 24 hours.


david_r
Celebrity
  • July 16, 2019
georiki wrote:

Thank you @david_r for your quick answer, but I’ve already thought about it. The thing is that, I have a workspace that takes up to 6 hours to complete and uses a lot of our resources. The directory I watch is updated every 2, 3, or 4 weeks, without it being done on a regular basis. For these reasons, I wouldn’t want to start the workspace every night since, in the best case, it would run 13 times out of 14 for nothing. I also thought to do a scheduled job every week, but when the file is updated, my organization would like it to be processed within 24 hours.

I understand, but the if the triggered workspace is properly made it shouldn't need to run for more than a couple of seconds if no new file is present in the watched directory.

As far as I know there is no option for the directory watcher to only trigger at a specific time, as you describe it above. One way or another, I suspect that you'll have to do things differently to make it work the way you want.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings