Previous Topic

Next Topic

Book Contents

Book Index

File Notifications and Task Schedules

Like the scheduler, File Notifications require a task to have a schedule in order to run that task. As with the scheduler, the notifier runs the task only during the scheduled intervals.

However, tasks for which all sources use notifications are run much less frequently than when file notifications are not used. Those tasks will not be run periodically as specified by the task interval (for example, every 15 minutes). Instead, with a few exceptions, the task is run only when files that match one of that task's sources arrive. If all sources use File Notifications, the Repeat only until first success option on a schedule is ignored.

Exceptions:

For example, if a task is scheduled to run every 15 minutes between 08:00 and 17:00, and all of its sources are marked to use notifications, then the "every 15 minutes" portion of the scheduling information is ignored. Instead, the task is run at 08:00 (in order to catch any files that may have arrived overnight), and thereafter the task is run only when a file arrives.

If only some of a task's sources correspond to hosts for which notifications have been enabled, then the task will be run both by the normal scheduler and by the notifier.

The arrival of a given file might cause several tasks to run, if those tasks are all watching the same directory. The notifier respects the Include Subdirectories option.

The simultaneous arrival of multiple files that are being looked for by a task do not necessarily cause that task to be run multiple times. However, if a task is already running when files for that task arrive, the notifier queues a request to run the task again when the task completes.