You could add a task to your current job, at the end. This task would write out a file, called anything you want. In this file you write out the time of the last time the file trigger fired. {TRIGGER(YourGUIDForTheFileTrigger|LastTrigger|LastRun)}
Now add a second trigger, the file trigger you already had and one for a timed event.
Let's pretend you expect a daily file and the file usually comes in at 4 am, set your time trigger to run at 12 noon.
Task #1 would be to find your special file and read it
Task #2 would be your email indicating the file has not come in for X hours
In this task you can evaluate the date/time to current date/time (subtraction) and, if that number is greater than your threshold then you will send the email. If the number is less than the threshold then you skip this step by using a Condition. The condition is where the math is done and result evaluated. See here:
https://www.visualcron.com/doc/H...dition_-_conditions.html The rest of the job would be what you normally have the job do.
In this way you can have your one job to maintain, each file trigger can be evaluated and each email can be setup to be sent to different people.
The only break down we see with this method is that holidays, long weekend, etc make the math hard and, basically, we send more emails than we would like but people know an email might be coming over a holiday because they do not expect a file to come in. Better to get an email when you expect it than to have a job get skipped when you don't
Edited by user
2020-09-30T22:28:40Z
|
Reason: Not specified