Schedules
SelectSchedules > Manage Schedules.
The Schedules page allows you to runworkspaces at specific times in the future on a repeating or non-repeating basis.
A request to run aworkspaceat a scheduled time is called atask. Each entry in the Schedules table represents a scheduled task. When a task is completed, its entry is removed from the table when the page is refreshed.
Viewing Schedules
The Schedules page lists all the schedules created on theFME Flow, including those that have not yet run any tasks.
The columns displayed on the Schedules page are:
- Name: The user-defined name of the task
- Category: The user-defined name of the general category or group to which the task belongs
- Start Time: The time at which the task is scheduled to start, using the following syntax:
- End Time: The time at which the task is to end. The time displays asN/Aif the task does not end, or using the following syntax:
- Recurrence: The frequency of the task. Recurrence displays as,Never(if the task occurs only once), a Cron expression, or the recurrence interval, whichever is specified.
- Workspace: Theworkspacethat runs the request.
- Status: The current status of the task.
- Enabled (green checkmark): it will run at the next scheduled time.
- Disabled (red circle with x): the task has been paused.
- 老板: The user who created the schedule owns it and has full permissions on it.
- Share: To share a schedule, click the Share with Others icon. Through sharing, you can grant levels of permissions on an item to other users. You can share an item if you own it, or if you are a user with Manage permission in Security, such as an administrator. For more information about sharing and ownership, seeRole-Based and User-Based Access Control.
year-month-day hour:minute:second
year-month-day hour:minute:second
- Average % CPU: Average percentage of processing time that is recorded as CPU time, calculated asAverage CPU Time/Average Elapsed Time.
- Average CPU Time: Average total CPU time to run theworkspace. For more information about howCPU Timeis measured, see theCompletedjobs table.
- Average Elapsed Time: Average total processing time of theworkspace.
- Average Peak Memory Usage: Average peak memory usage by the FME Engine while processing a job. For more information about howPeak Memory Usageis measured, see theCompletedjobs table.
You may decide that, over time, some of the performance-related statistics, such as those pertaining to CPU time and memory usage, are outdated and do not reflect current conditions. If so, you can reset them so that they are calculated anew. Select one or more schedules to reset, clickActions, and selectReset Statistics.
Adding a Scheduled Task
To add a scheduled task, do any of the following:
- From the Schedules page (Schedules>Manage Schedules), clickCreate; or, select a task from the table, and selectActions>Duplicate.
- SelectSchedules>Create Schedule.
Enter or edit the following information to define the task. When finished, clickOK.
Name: Name of the task
Category: Name of the general category or group to which the task belongs.
This name can be used to organize tasks into site-specific types as required.
Task names must be unique within the table.
Description: Description of the task.
Enabled: Check to enable the task.
Schedule Type:
- Basic: The task repeats in a calendar-friendly selection of intervals derived from a specified start time.
- Repeat On Interval: The task repeats in intervals from a list of predefined units.
- CRON Expression: The task repeats based on your own cron expression.
- Only Occur Once: The task runs once only at the specifiedStarttime
IfRepeat on Intervalis specified, the schedule does not adjust when switching between Standard Time and Daylight Saving Time.
Field | Required | Allowed Values | Allowed Special Characters |
---|---|---|---|
Seconds | Yes | 0-59 | , - * / |
Minutes | Yes | 0-59 | , - * / |
Hours | Yes | 0-23 | , - * / |
Day of month | Yes | 1-31 | , - * ? / L W |
Month | Yes | 1-12 or JAN-DEC | , - * / |
Day of week | Yes | 1-7 or SUN-SAT | , - * ? / L # |
Year | No | empty, 1970-2099 | , - * / |
For more information about the cron format, seethisFME Communityarticle.
Date Range:
- Start: Date and time the task is to start. For more information, seeSpecifying a Future Time.
- Start Immediately: When checked, the task starts as soon as it is added to the Schedules table. When unchecked, you must specify aStarttime (above).
- End: Date and time to stop running the task. For more information, seeSpecifying a Future Time.
- Does Not Expire: When checked, the task has no end time. When unchecked, you must specify anEndtime (above).
Recurrence: IfSchedule TypeisBasic, specify how often the task repeats from the drop-down selections.
Skip if Job In Progress: If checked, andSchedule TypeisBasic,Repeat on IntervalorCRON Expression, the next scheduled task is not triggered if the status of the previously triggered job is still Running or Queued.
The following example shows a recurring task entry in the table:
In this example, the task recurs every four days starting on 01-Feb-2018 at 8pm and ending on 01-March-2018 at 10am.
Workspace
Repository: Name of the repository in which theworkspaceresides.
Workspace:Workspacethe task is to run.
Once theworkspaceis specified, any published parameters of theworkspacedisplay. You can modify these parameters, if desired. The changes take effect when the task is run.
Notifications
If desired, specify the Notification Service topics to which to send a notification if the task executes successfully (Post to Topic on Success) or unsuccessfully (Post to Topic on Failure). For more information, seeMonitoring FME Flow Events from Topics.
Advanced
- Job Queue(optional): The queue in which to run the job. The specified queue overrides the queue that would otherwise be assigned based onQueue Controljob routing rules. If not specified, job routing rules apply. To view the queues to which FME Engines are assigned, open theEnginespage.
- Queued Job Expiry Time(optional): The length of time after which a job that is waiting in queue does not execute. If the job does not execute before this time is reached, it remains in the queue until it is ready to execute, but execution is not attempted. This directive is useful for time-sensitive jobs that you do not want to run after the specified time is exceeded.
- Running Job Expiry Time(optional): The time a job will remain in the running state. This directive is used to ensure that a job does not hang and block an FME Engine indefinitely. The minimum allowable value is 1.
Testing a Schedule-InitiatedWorkspace
For testing purposes, you can force aworkspacethat is initiated by a Schedule to run at any time, regardless of the specified parameters of the Schedule.
From the Schedules Page
- 选择启动的时间表workspaceyou want to test.
- SelectActions>Trigger.
From the Create or Editing Page of an Individual Schedule
- When ready to test, clickTrigger(at bottom).
A Trigger Schedule message displays to indicate whether the Schedule was successfully requested. If so, the scheduled task runs as it is currently configured.
Viewing Jobs Triggered by a Schedule
To view a list of jobs that have been triggered by a schedule, select a schedule, and selectActions>View Triggered Jobs.
点击on any job in the list to view it on theJobspage. To remove a job from the list, select it and clickRemove.
Modifying a Scheduled Task
To examine or modify the properties of a scheduled task, click the task entry in the Schedules table.
This displays the properties of the task in a page similar to the one used forAdding a Scheduled Task, above. If the schedule originates from aFME Flow Scheduletrigger in an Automations workflow, the workflow opens for editing.
Enabling or Disabling Scheduled Tasks
You can suspend scheduled tasks when they are created or by modifying an existing task. Click theEnabled复选框的编辑或者创建一个新的时间表Schedule page. Alternatively, on the Schedules page, select the tasks you want to enable or disable (suspend), and selectActions>EnableorDisable.
Removing a Scheduled Task
To remove a scheduled task, check the box beside the task on the Schedules page, and selectActions>Remove.