The Job Service is a process that runs on the Centric 8 Application Server, to execute different background jobs. The Job Service is single threaded and can execute only one job at a time.
There are several built-in jobs in Centric 8 and each ${Customer.Name} can add their own export or import jobs. Each Job has a scheduler, that instructs the Job Service on when to execute it.
The Job Service cycle follows the following simple logic:
- Query for all Jobs in the DB.
- For each job check if it is due.
- If job is due, execute it.
- Repeat steps 2-4 until all jobs are executed.
NOTE: In the Cluster environment only one instance of the Job Service can be active.
SECTION: JOB SERVICE STATUS
All Job requests or Job services are sent to the server for processing. This section of the tab allows Users to view and change job status, edit scheduled processes and manage the document service and PDF printing.
- To suspend the job services, click on STOP. The Status is changed from Running to Stopped.
- To restart the job services, click on START.
- To refresh the details displayed on this tab, click on REFRESH.
SECTION: JOB SCHEDULES
This section of the tab provides details regarding the Jobs scheduled as well as the execution time and progress of the job.
The following attributes are displayed in the Default view:
- Job: The type of Job that has been scheduled for execution
- Schedule: The details of the schedule when the job will be executed. For example, Daily, Weekly, Periodically etc. This options for this attribute are pre-defined.
- Type: The type specifies the status of the schedule. E.g. Stopped, One Time, Daily etc. The options for this attribute are pre-defined.
- Auto Delete: This checkbox is selected and greyed out when it is specified that the job schedule should be deleted automatically after it is executed. This is defined at the time of setting up a job schedule. It is not possible to edit the details of this attribute on this table.
- Interval (sec): The interval (time period) between execution of job schedules is displayed in this column. Users can edit the interval in seconds in this table.
- Include Weekends: To execute the scheduled job during weekends, select the checkbox corresponding to the required job. Else, de-select the checkbox.
- Execution Time: Click anywhere within the column to choose a time from the drop-down list. The scheduled job will be executed at the specified execution time.
- Due: Click anywhere within the column, to select the date and time during which the job is scheduled for execution.
- Started: The commencement date and time of the scheduled job.
- Progress: The progress of the executed job displayed in %age (0 - 100% where 100% indicates job completed)
- Progress Info: The progress information for the executed job. The details for this attribute depend on the previous attribute (Progress).
- Ended: The date and time when the scheduled job was executed and completed. This is recorded automatically from the system date and time.
- Duration (min):
- State: The status of the job executed i.e. Success or Failure
- Error:
- Email When: Specify when an email should be generated depending on the job schedule status. The following pre-defined options are available in the drop-down list:
- None
- Failed
- Interrupted
- Always
- Email Group: From the available drop-down list, select the email group to which email has to be sent depending on the selection in the previous Email When attribute.
For changes to be reflected within the C8 application , from the main menu bar, select Actions > Update Configuration.