You are here: Web User Interface > 使用界面 > Schedules > Adding a Scheduled Task

Adding a Scheduled Task

To add a scheduled task, navigate to the Schedules page and do either of the following:

  • clickNew.
  • Select a task from the table, and click复制. This alternative allows you to add a task by duplicating an existing one, and then editing it.

输入或编辑以下信息以定义任务。完成后,单击好的.

Name: Name of the task

类别: 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.

任务名称必须在表中唯一。

Description: Description of the task.

Enabled: Check to enable the task.

立即运行: When checked, the task starts as soon as it is added to the Schedules table. When unchecked, the page allows you to specify开始时间.

开始时间- Date and time the task is to start. For more information, see指定未来的时间.

Recurrence: Specify how often the task repeats. You can specify:

  • Repeat On Interval: Repeats in intervals from a list of predefined units.
  • cron表达:基于您自己的Cron表达式重复。
  • Only Occur Once:任务仅在指定的情况下运行一次开始时间.

不te:cron expressions must be configured according to the time zone of the FME Server that runs the task. All other times can be expressed according to your local time zone.

If重复间隔指定了,计划在标准时间和夏令时切换时不调整。

Schedule Does Not Expire:检查后,任务没有结束时间。取消选中时,页面允许您指定End Time.

End Time: Date and time to stop running the task. For more information, see指定未来的时间.

工作区

Repository: Name of the repository in which the workspace resides.

工作区: Workspace the task is to run.

Once the workspace is specified, any published parameters of the workspace display. You can modify these parameters, if desired. The changes take effect when the task is run.

通知

如果需要,请指定要在任务成功执行的情况下发送通知的通知服务主题(Post to Topic on Success) or unsuccessfully (Post to Topic on Failure). For more information, seeMonitoring FME Server Activity with Notifications.

Advanced

Job Priority(可选):工作区运行的作业的优先级。

Job Queue(optional): Thejob queuein which to run the job. If not specified, the job is placed in the job queue of the repository to which the workspace belongs.

Queued Job Expiry Time(optional): The length of time, in seconds, 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, in seconds, 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.

Run Until Cancelled(optional): If checked, the job runs continuously, even after a server shutdown or crash, until it is explicitly canceled.