3. Exploitation - PurgeJob 

Page / - last modified by Assala Chmiti on 2022/07/29 16:04 

PurgeJob 
last modified by Assala Chmiti
on 2022/07/29 16:04

Table of Contents
Introduction:
Parameters:
Use:
When the purge is executed?:

Introduction:
'PurgeJob' is a connector allowing iXPath admins to delete all old jobs from the database in order to make it more available and performant.
The main aim to have this connector in hand is to handle storage issues and discard old jobs.
This presentation is going to take you through : 
 1.	 Parameters used.
 2.	 How to use the 'PurgeJob' connector.
                
Parameters:
'PurgeJob' connector involves 2 parameters : 
 1.	RetentionJob:  the number of days. it refers to how old the jobs wanted to be deleted. eg: If we take retentionJob=30 days, the connector will remove all jobs older than 30 days.
 2.	StopTime: the number of minutes to stop the current 'PurgeJob'. eg: if we set stopTime = 60 minutes and 'PurgeJob' has been triggered at 1:00 pm, it will be stopped at 2:00 pm.
Use:

The structure of 'PurgeJob' helps its users to proceed with the connector not only in the current environment but also in the sub-environments.
eg :  if there is an environment (EnvID = 1) which has 2 sub-environments ( EnvID = 2 and EnvID = 3), and we start 'PurgeJob' in EnvID = 1, the connector will be automatically executed in environments  1,2 and 3.  
When the purge is executed?:
This connector will be configured to delete the jobs older than 30 days (1 month) from today's date in the SIM server and 180 days (6 months) in the PROD server.
This connector should only be executed by the iXPath members.