Understanding Scheduled Jobs
  • 22 Feb 2023
  • 6 Minutes to read
  • Dark
    Light

Understanding Scheduled Jobs

  • Dark
    Light

Article Summary

Overview

Scheduled Jobs is a feature where users can run a Flow, run a Report, send emails, synchronize Active Directory, or perform other tasks on the scheduled date and time. By using advanced scheduling options, a job may be scheduled for almost any frequency. 

Users can Enable or Disable Schedule Jobs on a Server. To do so, navigate to System (gear icon) > Administration > Servers. This will show all the servers. Right-click on the Server Name > Edit Server > Under Server Info > Enable or Disable 'Can be Job Server'.


Accessing Scheduled Jobs

In the Designer Studio, navigate to the System > Jobs And Events > Scheduled Jobs. On the Scheduled Jobs Page, any options listed on the Global Action Bar can be used to create the specific Scheduled Job type. Each Scheduled Job has unique settings that help determine what the job does.


Types of Scheduled Jobs


Scheduled Flows

The New Schedule Flow option will allow users to run a Flow per the required date, time, and span. It has the option to pick an already created Flow or to create a new Flow.

Configurations for Scheduling a Flow

ConfigurationDescription
Scheduled Job NameThis will set the Name of the Scheduled Job
Pick or Create Scheduled FlowThis will allow the user to pick an existing Flow or create a new Flow
CalendarThis option allows users to configure the calendar type and its calendar information for precise job scheduling.
Daily ScheduleAllows to run the job daily.
  • Set the Hour and Minute (24hrs format).
  • Select the days of the week you wish to run the job.
  • Respect Business Days for Selected Days - When enabled, this will respect the Business days configured for the Location. E.g., assuming all days of the week are selected, and as per the location, Sunday is the only non-functional day, the job will not run on Sundays.
First Day of Month

Allows to run the job on the first or last day of the month, respectively.

  • Set the Hour and Minute (24hrs format).
  • Run on Business days - run the job on the month's first or last business day.
Monthly Schedule

Allows the job to run once every Month

  • Choose the day of the Month to run the job (cannot be more than 31)
  • Set the Hour and Minute (24hrs format).
  • Compute Mode
    • RunOnCalculatedDay - will run the job on the configured day
    • FirstBuisnessDayBefore - will run the job on the first business day before the defined Day of the Month value. E.g. - assuming the day of the month falls on Sunday and, as per the location, Sunday is the only non-functional day, the job will run on Saturday.
    • FirstBuisnessDayAfter - will run the job on the first business day after the defined Day of the Month value. E.g. - assuming the day of the month falls on Sunday and, as per the location, Sunday is the only non-functional day, the job will run on Monday.
  • Select the month of the year to run the job.

Specified Job Schedule

Allows running the job at a specific time.

  • Choose the future date and time to run the job at once.

Time Span Schedule

Allows running the job at a fixed interval of time span

  • Run When
    • Immediately - when the configuration is saved, the job will run immediately and later follow the configured time span.
    • AfterTimeSpan - when the configuration is saved, the job will run after the configured time span and later follow the same time span.
    • SpecifiedTimePeriod - allows running the job in configured time span after a set specific time period.
  • Time Span - Use the sliders to set a specific interval of time 
  • Between Hours - will run the job for a specific time span between the configured time period.

Weekly Schedule

Allows the job to run once every Week.

  • Set the Hour and Minute (24hrs format).
  • Set the day of the week to run the job once every week.
  • Compute mode - refer to the Monthly Schedule calendar type from the same table.

Yearly Schedule

Allows the job to run once every Year.

  • Set the Hour and Minute (24hrs format).
  • Set the Month of the year (cannot be more than 12) and Day of the month (cannot be more than 31).
  • Compute mode - refer to the Monthly Schedule calendar type from the same table.
Requeue if Job FailsIf the Job fails, this action will restart the job after completing all the jobs from the same job queue.
Job Queue: A Job Queue will contain a set of jobs running one after the other. Consider this as a single basket of Jobs. If a Job gets held up, all scheduled jobs in the same queue will be put on hold until the initial job finishes. 
Create Task if Job FailsThis action will allow notifying, creating, and assigning a task for a user if the job fails.
Run Job on StartupThis will start the job whenever the Decisions Server is restarted.
  • Self-Hosted: Restarting the Decisions Server from Windows Services
  • IIS Hosted: Restarting the Decisions Server by entering 'iisreset' from the Command Prompt/PowerShell
Start DateThis will set the date and time to start the job
Specify ExpirationThis will expand and allow setting the date and time to expire the job.
Override Job Queue NameThis will allow setting a new Queue Name.
Queue Name: If the Queue name is the same for multiple jobs, it will be considered a single Job Queue. So to run the Jobs in parallel, users need to give a new Queue Name to create a new Job Queue.
Notify on Job DelayWhen this option is enabled, users can set up notifications for delays in their job by configuring the relevant details.
Delay Greater than (in seconds)This is a buffer period before notifications are sent to users regarding job delays.
Add to LogsThis feature allows for adding logs to the log folder and setting the level of logs included in the logs.
EmailsThis will trigger an email notification to the configured email addresses, informing them that the job has been delayed.
Create AssignmentsThis will create user and group assignments regarding the delayed job.

Refer to the following article to learn about Running a Flow as a Scheduled Job.


AD Sync Jobs

To learn all about the Active Directory (AD) and Active Directory (AD) sync Jobs, refer to the following Documentation:


Interval Jobs

The Add Interval Job option allows users to run a Flow, usually at specified intervals.

Configurations for Interval Job

ConfigurationDescription
Job NameThis allows setting the Name of the Job
EnabledWhen selected, this will ensure that the Interval Job is active and running.
Pick FlowThis will allow the user to pick an existing Flow
Only Run on Job ServerWhen Enabled, this will run the Job only on one server from the clustered environment.
CountNumber of times the job will run at once
IntervalAdjust the Sliders to set the interval time
Notify on Job Delay

When this option is enabled, users can set up notifications for delays in their job by configuring the relevant details.

Delay Greater than (in seconds)

This is a buffer period before notifications are sent to users regarding the job delay.

Add to LogsThis feature allows for adding logs to the log folder and setting the level of logs included in the logs.
EmailsThis will trigger an email notification to the configured email addresses, informing them that the job has been delayed.
Create AssignmentsThis will create the assignments to the users and groups regarding the delayed job.

Once all the settings are configured, the Interval Job will start instantly. To learn more about Interval Jobs, refer to Interval Jobs.


Startup Jobs

The Add Startup Job option allows users to run a Flow when the Decisions Server is restarted.

  • Self-Hosted: Restarting the Decisions Server from Windows Services
  • IIS Hosted: Restarting the Decisions Server by entering 'iisreset' from the Command Prompt/PowerShell


Thread Jobs

Thread Jobs shows all the Decisions internal Job Processes. 


Was this article helpful?