@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class ClusterTaskCleanupService extends Object implements com.atlassian.scheduler.JobRunner
TaskManager
that are assigned to offline nodes.
Such tasks are usually a result of a node being stopped abruptly. Due to the implementation details of TaskManager
,
Jira cluster will keep thinking that the task is still running, preventing users to retry some actions until the original
task is finished, which will never happen.
The behavior of this service can be adjusted by modifying RUN_INTERVAL_PROPERTY_KEY
and OFFLINE_NODE_THRESHOLD_PROPERTY_KEY
properties.
Constructor and Description |
---|
ClusterTaskCleanupService(com.atlassian.scheduler.SchedulerService schedulerService,
ClusterManager clusterManager,
ClusterNodeHeartbeatService heartbeatService,
TaskManager taskManager,
FeatureManager featureManager,
ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.scheduler.JobRunnerResponse |
runJob(com.atlassian.scheduler.JobRunnerRequest request) |
void |
start() |
void |
stop() |
public ClusterTaskCleanupService(com.atlassian.scheduler.SchedulerService schedulerService, ClusterManager clusterManager, ClusterNodeHeartbeatService heartbeatService, TaskManager taskManager, FeatureManager featureManager, ApplicationProperties applicationProperties)
Copyright © 2002-2023 Atlassian. All Rights Reserved.