Class CustomFieldUsageRecalculationJob
java.lang.Object
com.atlassian.jira.issue.fields.usage.CustomFieldUsageRecalculationJob
- All Implemented Interfaces:
Startable,com.atlassian.scheduler.JobRunner
public class CustomFieldUsageRecalculationJob
extends Object
implements com.atlassian.scheduler.JobRunner, Startable
Job for initial calculation and updating of `Last value update` and `Issues` data (see
CustomFieldUsageDataService).
Recalculating `Issues` data by default happens once per day at 3 AM server time.
The time can be changed by setting SYSTEM_PROPERTY_CALCULATE_USAGE_SCHEDULED_TIME property.
Initial `Last value update` calculation by default will happen once after upgrade.
It can be also forced by admin by setting APKeys.JIRA_CUSTOM_FIELD_USAGE_INIT_DATA_REQUIRED flag to true.
since 8.16-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldUsageRecalculationJob(CustomFieldUsageDataService customFieldUsageDataService, com.atlassian.scheduler.SchedulerService schedulerService, CustomFieldUsageEnabledCheck customFieldUsageEnabledCheck, ApplicationProperties applicationProperties, com.atlassian.beehive.ClusterLockService clusterLockService) -
Method Summary
-
Field Details
-
SYSTEM_PROPERTY_CALCULATE_USAGE_SCHEDULED_TIME
- See Also:
-
LAST_ISSUES_RECALCULATION_DATE_KEY
- See Also:
-
MESSAGE_INIT_COMPLETE
-
MESSAGE_FAILED_DUE_TO_LOST_LOCK
-
-
Constructor Details
-
CustomFieldUsageRecalculationJob
public CustomFieldUsageRecalculationJob(CustomFieldUsageDataService customFieldUsageDataService, com.atlassian.scheduler.SchedulerService schedulerService, CustomFieldUsageEnabledCheck customFieldUsageEnabledCheck, ApplicationProperties applicationProperties, com.atlassian.beehive.ClusterLockService clusterLockService)
-
-
Method Details
-
runJob
@Nullable public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request) - Specified by:
runJobin interfacecom.atlassian.scheduler.JobRunner
-
start
public void start()Description copied from interface:StartableThis method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
-