Skip to content

Job Scheduler Services Creation

Instructions for creating Job Scheduler Services

Job scheduler services are used to run processes by sending requests to the appropriate endpoints according to a specified schedule and frequency. This guide describes how to configure one instance of job scheduler service named job_scheduler_datasources with one job (SyncDataSources) needed to synchronize data from SAP system.

  • skybfrxts_*.mtar is installed in the organization and space you need
  • skybfryai_*.mtar is installed and application js_bot_management is running

Screenshot

  • The instance of the job_scheduler_datasources exists

Screenshot

  • The instance UAA-service of the xsuaa service exists

Screenshot

Sequence of actions before creating any Job with automatic authorization

Section titled “Sequence of actions before creating any Job with automatic authorization”

The instance of job_scheduler_datasources was automatically created with parameter {“enable-xsuaa-support”: True} and the instance UAA-service was automatically created with specific parameters that are specified in the file xs_security.json while the skybfryai_*.mtar was installing. But since the sequence of creating these services and binding applications to them could be done not in correct order during installation, we need to manually rebind the services to the js_bot_management application. This guarantees us that authorization will work automatically in jobs.

Complete the following steps strictly in order:

  1. unbind js_bot_management from UAA-service
  2. unbind js_bot_management from job_scheduler_datasources
  3. bind js_bot_management with UAA-service
  4. bind js_bot_management with job_scheduler_datasources
  5. restage js_bot_management

Screenshot

After completing this sequence, we can start creating jobs and schedules for them.

Find there job_scheduler_datasources instance and click it.

Screenshot

Click on Open Dashboard inside the instance

Screenshot

Here click Create button.

Screenshot

Here fill in the fields:

  • Name choose the name, suggestion: SyncDataSources.
  • Action as (js_bot_management application route)/xsjs/jobDatasoucesSync.xsjs”. Application route (protocol + host + port) you can find at js_bot_management section.
  • HTTP Method select GET.
  • Target application select js_bot_management

Screenshot

After the job has been created, we must create a schedule.

Screenshot

Fill in any description, select pattern as Recurring – Repeat Interval and set the value 2 minutes.

Screenshot

After completing the steps, you will have an active job as shown in the figure below.

Screenshot

You can see a list of logs for every scheduler.

Screenshot

Also, you can see details for every job run.

Screenshot