how to configure Scheduler in blue prism

scheduler configuration

Introduction:

The scheduler is a service which executes task on conditions defined by the user.The scheduler allows Blue Prism to execute processes at specified times and repeat their execution at various intervals.

The scheduler is a background process which waits for the next schedule activation time and then activates any schedules due to run at that time.The schedules can be configured to run once, or be repeated at minutely, hourly, daily, weekly, monthly or yearly intervals.

The scheduler allows Blue Prism to execute processes at specified times and repeat their execution at various intervals. The scheduler is a background process which waits for the next schedule activation time and then activates any schedules due to run at that time.

 

1  Configuring the Scheduler

To change the scheduler settings, navigate to System Manager and select the ‘System’ option.

Configuring the Scheduler
Configuring the Scheduler

To enable the scheduler, tick the “Activate the scheduler for this environment” box. Untick the box to disable the scheduler.

  • The BP Server Service must be restarted to ‘activate’ changes made on this scheduler configuration screen. Therefore to activate the scheduler, the box must be ticked and the Blue Prism Server Service must be

 When the scheduler is started up, it can check back for recent schedules which should have executed when the scheduler was not running.

To configure how far back the scheduler will check, enter the number of minutes into the “Execute missed schedules from the past n minutes” box.

  • The setting is only effective when the scheduler is starting up. It has no effect on a running
  • To set the scheduler to not look back at all, enter 0 (zero).
  • If a schedule has been missed multiple times during the configured period, it will only be executed
  • Schedules which have successfully executed in the configured period will not be executed again

 If a resource is discovered to be offline when the scheduler attempts to run a process on it, it will wait and retry the resource after a defined number of seconds.

To configure the number of seconds to wait before retrying, enter the number of seconds into the ‘if a resource is offline, retry after n seconds’ box.

To configure the number of times to retry the resource enter the number of times into the ‘Retry an offline resource a maximum of n times’ box. For an unreliable network, configure this value to a high number.

  • To configure the scheduler not to retry resources discovered to be offline, enter 0 (zero) into the ‘Retry an offline resource a maximum of n times’ box.
Configuring the Scheduler
Configuring the Scheduler

2  Schedules and Tasks

Schedules are created and amended on the Scheduler section of Control Room. To create a new schedule, right click on the ‘Schedules’ tree element of the Control Room tree and select ‘New Schedule’.

Schedules and Tasks
Schedules and Tasks

You can then give the schedule a name and description. When a schedule is executed, its initial task is executed first. When a new schedule is created, a new task is automatically created within the schedule. The task becomes the default ‘initial task’ for the schedule.

If the name of the automatically created task is amended within the task, the name will automatically change within the Initial Task field of the schedule. As new tasks are added to the schedule, they become options that can be selected within the Initial Task drop down list.

Schedules and Tasks
Schedules and Tasks

A schedule can be configured to run once, hour/minutely, daily, weekly, monthly or yearly. To select the schedule’s frequency, select the appropriate radio button. The start data and time can be configured. IN addition, for all frequencies other than ‘once’ an end date and time can be configured

  • The default setting is for schedules never to expire

 Schedules can be configured at an interval from every 1 to 999 weeks. The schedule will default to running on the same day as the start date. The day on which the schedule will be run can be configured to be the first or last working day in the week as specified in the chosen calendar.

  • The first day of the working week in a Blue Prism calendar is considered to be Monday, so if, for example, a calendar is configured to work from Sunday to Friday, Monday will be considered the first working day and Sunday will be considered the last working day of any given week (other holidays aside).

 Schedules can be configured at an interval from every 1 to 999 months. The schedule will default to running on the same day as the start date. The schedule can be configured to run on the first, second, third, fourth, fifth or last occurrence of a specified day in the month. The scheduler can be configured to be run on the first or last working day of a month according to a specified calendar.

  • A schedule will skip any months in which the specified date doesn’t exist. For example, a schedule configured to run on the 31st of each month will not execute in any months with less than 31 days. Consider using the last working day functionality instead.

To save any changes to your schedule either right click on the schedule name in the Control Room tree to bring up the context menu, where you can select save. You can also click the Apply changes button found at the bottom left hand side of the screen instead.

You can delete a schedule via the same context menu but if you want to temporarily suppress the schedule you can “Retire” the schedule instead. Once retired, the schedule can still be selected and viewed from the Control Room tree but cannot be edited.

Schedules and Tasks
Schedules and Tasks

A retired schedule will be moved under the Retired Schedules tree item. A retired schedule can be made active again by un-retiring it. Once restored the schedule will be activated by a running scheduler at its next trigger point.

A schedule can be triggered manually regardless of its timing settings by right clicking on the schedule and clicking ‘Run Now’.

  • It might take up to 30 seconds for the schedule to trigger

 A scheduler is of little use without any tasks within it. Tasks tell the schedule what processes to run and on what resources.

When a schedule is created, a task entitled ‘New Schedule – New Task’ is automatically created within the schedule. The initial task within the schedule defaults to this task. Before adding further tasks, edit the New Schedule – New Task. First give the task a name and description.

Schedules and Tasks
Schedules and Tasks

To add further tasks, right click on the schedule and select ‘New Task’.

A task can be configured to instigate another task on successful completion, or on exception, of the existing task. The available actions to the task are held within the ‘On Complete’ and ‘On Exception’ drop down lists.

For Reference : Must read Know About Blue Prism

Conclusion :

A schedule represents the point of execution of a set of tasks. Each schedule is self-contained and contains various data such as a name & description, timing data and a set of tasks to perform. A task represents a component of a schedule. It defines a set of sessions which are set to be performed on particular resource PCs. A task also defines the next task for the schedule to execute on completion or failure of the current task.

The schedules can be configured to run once, or be repeated at minutely, hourly, daily, weekly, monthly or yearly intervals. Calendars can be employed to cause the schedule to run only on working days, skipping specific certain weekdays and/or public holidays.

SHARE THIS

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.