You can schedule actions to run based on a time and date or based on an event.
By default, the schedule does not automatically start when the application is started. You can, however, configure your system to run schedules at start up using the property Automatically run schedules at startup. See Other system options.
For the Cleo LexiCom application, the schedule will only run one action at a time. If more than one action is scheduled for the same time, the actions are run sequentially. If a scheduled action is still running when another action's scheduled time arrives, the action is not started until the running action ends.
For the Cleo Harmony and Cleo VLTrader applications, you control concurrently running scheduled actions using the property Allow Scheduled Actions to Run Concurrently. See Other system options.
Scheduling actions to run at specific dates and times
Scheduling actions to run weekly
You can schedule actions to run automatically on a weekly schedule. You can set up multiple day and time ranges.
Scheduling actions to run monthly
Scheduling actions to run one time
Scheduling actions to run automatically by polling for files
Requirements when polling for files
When you set up an action to run by polling for files, the action will potentially be run according to the period you've configured. However, it will only actually run if one of these conditions are true:
- A PUT, PUT+GET, or LCOPY command within the action has a file to send or copy.
- The CHECK command is present in the action and specific conditions for that command are met.
Note that if an action contains both PUT/LCOPY and CHECK commands, it is the first command encountered that determines whether autosend properties (for PUT and LCOPY) or autocheck properties (for CHECK) are used. Since this could make it difficult to determine the actual schedule, actions designated for autocheck should contain only the CHECK command.
The frequency at which the scheduler checks to see if there are files to send or copy is controlled by the Autosend Check Everyproperty. This indicates that even schedules set up for continuous polling are not actually continuous. Rather, their minimum frequency of polling is determined by Autosend Check Every.
PUT, PUT+GET, and LCOPY command rules
- For an action to be scheduled this way, at least one of its PUT, PUT+GET, or LCOPY commands must use the delete after transfer (-DEL) option.
- If an action contains both PUT (or PUT+GET) and LCOPY commands, whichever type is found first in the action drives its scheduling. Even though this is allowed, it is highly recommended that autosend actions contain only one autosend-type command (for example, PUT/LCOPY -DEL). This ensures all autosends process only stable files. Furthermore, if multiple scheduler threads are in use, separating autosend commands should increase the throughput of the scheduler loop.
- When autosend is activated, files are checked for stability before they are sent or copied. This is an important feature to prevent to an unstable or incomplete file from being sent or copied. For this reason, all PUT and LCOPY commands should use autosend.
CHECK command rules
- The CHECK command must have a CHECK -FIL or CHECK -DIR command in the action.
- The CHECK command must specify an Age value of >nn[D|H|M|S] (where nn is a value of 0-99).
- The CHECK command may not specify the Count parameter. Therefore, by default, the count will be only one (1).
- If a file is reported on a particular CHECK run, and it is not subsequently handled (for example, moved somewhere else or processed in some way), it will be reported again on future executions of the command. For this reason, it is recommended that the Execute On Check Conditions Met property is specified, and that it contains the proper system commands needed to clean up the file.
- For details of the CHECK command, see CHECK command.
- The frequency of autochecks is based on the setting of the Age parameter and the age of the files found. It is easiest to understand this by example:
- Example 1 -- Age is >1D
- Given the command
CHECK -FIL * Age=>1D
- Example 2 -- Age is >0D
- Given the command:
CHECK -FIL * Age=>0D
Scheduling actions to run based on events
Triggers are generated when:
- a new file arrives in a folder
- a new file fails to arrive in a folder
- a user session ends successfully
- a user session fails to end.
When you schedule an action to be run based on a trigger, the Scheduler window displays the triggering event in the Scheduled column. If there are multiple events, they are displayed in the Scheduled column as a comma-separated list.
Comments
0 comments
Please sign in to leave a comment.