Service Scheduling

◷ Reading Time: 4 minutes

Service scheduling is used to run different versions of Services at different times.

This is useful if you have one Package with multiple Services and your old Service has been running for a while, and you now want to load the new version of that Service at a specific time (e.g. at 12 PM today). This will stop using the old version and start using the new version at the specified time.

General Information

  • Package can include multiple Service versions with business logic and processes.
  • All Services (with different versions) inside a Package can be scheduled. In this case, all Services must be enabled.
  • A Service with Start/End settings has priority over a Service with no Star/End settings.
  • If you do not set any schedulers (Star/End settings) for your Services and you have multiple Services, then you should choose a Service version when you call your service via REST API. Otherwise, you will receive an error.

Setup Scheduler for a Service version

If you have different Service versions for the same package, then for each of them you can set up a different Date/Time service scheduler.

To access the scheduler in Workbench, navigate to the Packages menu under Execution Server. Then click on the identifier link of the package with multiple services.

Workbench Packages list view showing all uploaded packages and the identifier link highlight

Here you will see a list of Services within the package along with details for each service.

An alert will display is there is no schedule (or Champion challenger weight) assigned to at least one of the multiple services. You have the option to select scheduling via the dropdown menu at the top of the table, select Use Scheduling there.

Workbench Package services list view displaying all services available for the package. The dropdown option Use scheduling is highlighted.

Now choose the service you want to schedule and select Edit from the Actions dropdown menu.

Workbench Package services list view with the Actions menu open for a service and Edit selected

You are taken to the Service edit view and then select the Options tab.

Under this tab you will see the schedule options to set the date and time to run the service. Following are some things to note:

  • date/time are based on UTC time.
  • If you only set a Start date/time and don’t define any End date/time, the service will be ongoing.
  • If you set a date and not a time the default time will be 12:00am on that date.
  • You do not need to STOP any Services to make the scheduler work. FlexRule Server finds the best available Service that is enabled base
Workbench services edit view showing the Options tab open. The scheduling section is highlighted

Once you have set the schedule, click on Update to apply to the service.

Workbench service edit view highlighting the Update button
Detail view of the Service Updated success modal notification

Now if you navigate back to the Package Services list view you will see the applied schedule for the service in the summary table.

Detail view of the Package Services summary table. The Start and End columns now display the applied schedule dates and times.

Updated on September 28, 2023

Was this article helpful?

Related Articles